Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 54ae3af

Browse files
committed
Merge pull request #222 from kokspflanze/phpunit_update
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
2 parents 814acd2 + bda9029 commit 54ae3af

File tree

62 files changed

+848
-400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+848
-400
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ cache:
1515

1616
env:
1717
global:
18+
- COMPOSER_ARGS="--no-interaction"
19+
- COVERAGE_DEPS="satooshi/php-coveralls"
20+
- LEGACY_DEPS="phpunit/phpunit"
1821
- SITE_URL: https://zendframework.github.io/zend-mvc
1922
- GH_USER_NAME: "Matthew Weier O'Phinney"
2023
- GH_USER_EMAIL: [email protected]
@@ -67,10 +70,6 @@ matrix:
6770
allow_failures:
6871
- php: hhvm
6972

70-
env:
71-
global:
72-
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
73-
7473
notifications:
7574
irc: "irc.freenode.org#zftalk.dev"
7675
email: false
@@ -80,11 +79,12 @@ before_install:
8079
- if [[ $TRAVIS_PHP_VERSION != "hhvm" && $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi
8180

8281
install:
82+
- travis_retry composer install $COMPOSER_ARGS
83+
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
8384
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
8485
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
85-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
86-
- travis_retry composer install $COMPOSER_ARGS
87-
- composer show --installed
86+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
87+
- composer show
8888

8989
script:
9090
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi

composer.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
}
1414
},
1515
"require": {
16+
"container-interop/container-interop": "^1.1",
1617
"php": "^5.6 || ^7.0",
1718
"zendframework/zend-eventmanager": "^3.0",
1819
"zendframework/zend-http": "^2.5.4",
1920
"zendframework/zend-modulemanager": "^2.7.1",
2021
"zendframework/zend-router": "^3.0.1",
2122
"zendframework/zend-servicemanager": "^3.0.3",
2223
"zendframework/zend-stdlib": "^3.0",
23-
"zendframework/zend-view": "^2.6.7",
24-
"container-interop/container-interop": "^1.1"
24+
"zendframework/zend-view": "^2.6.7"
2525
},
2626
"require-dev": {
27+
"phpunit/phpunit": "^6.0.7 || ^5.7.14",
28+
"zendframework/zend-coding-standard": "~1.0.0",
2729
"zendframework/zend-json": "^2.6.1 || ^3.0",
28-
"zendframework/zend-psr7bridge": "^0.2",
29-
"phpunit/phpunit": "^4.6",
30-
"zendframework/zend-coding-standard": "~1.0.0"
30+
"zendframework/zend-psr7bridge": "^0.2"
3131
},
3232
"suggest": {
3333
"zendframework/zend-json": "(^2.6.1 || ^3.0) To auto-deserialize JSON body content in AbstractRestfulController extensions, when json_decode is unavailable",
@@ -40,6 +40,9 @@
4040
"zendframework/zend-psr7bridge": "(^0.2) To consume PSR-7 middleware within the MVC workflow",
4141
"zendframework/zend-servicemanager-di": "zend-servicemanager-di provides utilities for integrating zend-di and zend-servicemanager in your zend-mvc application"
4242
},
43+
"config": {
44+
"sort-packages": true
45+
},
4346
"extra": {
4447
"branch-alias": {
4548
"dev-master": "3.0-dev",
@@ -49,7 +52,10 @@
4952
"autoload-dev": {
5053
"psr-4": {
5154
"ZendTest\\Mvc\\": "test/"
52-
}
55+
},
56+
"files": [
57+
"test/_autoload.php"
58+
]
5359
},
5460
"scripts": {
5561
"check": [

0 commit comments

Comments
 (0)