phpunit 6 update #222
phpunit 6 update #222
Conversation
kokspflanze
commented
Feb 27, 2017
- phpunit 4 droped
- added phpunit 5.7.14 and phpunit 6.0.7
- added ::class syntax in tests
added phpunit 5.7.14 and phpunit 6.0.7 added ::class syntax in tests
cs fix
the php7 latest part should be fixed with zendframework/zend-eventmanager#47 |
@@ -72,7 +73,7 @@ public function prepareApplication() | |||
}, | |||
], | |||
'invokables' => [ | |||
'Request' => 'Zend\Http\PhpEnvironment\Request', | |||
'Request' => Request::class, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The topic of this PR is "PHPUnit 6" and all these changes makes a review more difficult.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want i can try to split it in 2 PRs
.travis.yml
Outdated
@@ -74,6 +72,7 @@ install: | |||
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi | |||
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi | |||
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi | |||
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Order here is important. This is not gonna work as expected if we will have composer.lock locked with PHPUnit 6.0.
I would suggest also extract satooshi/php-coveralls
to variable, as we have it in other modules (please see for example some expressive modules).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i can change it to https://github.com/zendframework/zend-expressive-fastroute/blob/master/.travis.yml if that is okay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is right. Please update. Thanks!
phpunit 6 update Conflicts: composer.json composer.lock test/Application/TestAsset/modules/Application/Module.php test/Controller/ActionControllerTest.php test/Controller/Plugin/AcceptableViewModelSelectorTest.php test/Controller/RestfulControllerTest.php test/Controller/TestAsset/ControllerLoaderAbstractFactory.php test/ResponseSender/AbstractResponseSenderTest.php test/TestAsset/MiddlewareAbstractFactory.php test/View/DefaultRendereringStrategyTest.php
Forward port #208 Forward port #222 Forward port #228 Forward port #230 Conflicts: src/Controller/Plugin/Forward.php test/Controller/ActionControllerTest.php test/Controller/ControllerManagerTest.php test/Controller/Plugin/ForwardTest.php test/Controller/RestfulControllerTest.php test/Controller/TestAsset/ControllerLoaderAbstractFactory.php test/Service/ServiceListenerFactoryTest.php test/Service/ServiceManagerConfigTest.php test/Service/ViewHelperManagerFactoryTest.php