Skip to content

Commit

Permalink
Merge pull request #10 from rstgroup/improve-testing
Browse files Browse the repository at this point in the history
Fixed and improved testing, added php 7.1 and 7.2
  • Loading branch information
mikemix authored Mar 1, 2018
2 parents cbf5251 + 27bf50c commit e1ba583
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,24 @@ language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
- hhvm

env:
- DEPS=lowest
- DEPS=latest

matrix:
allow_failures:
- php: nightly
- php: hhvm

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
- phpenv config-rm xdebug.ini
- if [[ $DEPS == 'lowest' ]]; then composer update --prefer-stable --no-interaction --prefer-lowest ; fi
- if [[ $DEPS == 'latest' ]]; then composer update --prefer-stable --no-interaction ; fi

script:
- phpunit
- vendor/bin/phpunit
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
},
"require-dev": {
"league/tactician-doctrine": "^1.0",
"phpunit/phpunit": "^4.8"
"phpunit/phpunit": "^4.8.36",
"sebastian/comparator": "^1.2.4",
"doctrine/orm": "^2.5"
},
"keywords": [
"zend framework",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public function testCreateService()
],
]));

$doctrineStub = $this->getMockBuilder('Doctrine\ORM\EntityManager')
->disableOriginalConstructor()
$doctrineStub = $this->getMockBuilder(\Doctrine\ORM\EntityManagerInterface::class)
->getMock();

$this->serviceLocator->expects($this->at(1))
Expand Down

0 comments on commit e1ba583

Please sign in to comment.