Skip to content

Commit 1f4af91

Browse files
authored
Merge pull request #39 from davidyell/update-phpunit
Update PHPUnit version constraint.
2 parents bcd3fe6 + 03eba9c commit 1f4af91

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: php
22

33
php:
4+
- 7.1
45
- 7.0
5-
- 5.5
66
- 5.6
7-
- 7.1
7+
- 5.5
88

99
dist: trusty
1010

@@ -27,8 +27,8 @@ before_script:
2727
- composer install --prefer-dist --no-interaction
2828

2929
script:
30-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then phpunit --coverage-clover=clover.xml; fi
31-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then phpunit; fi
30+
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then ./vendor/bin/phpunit --coverage-clover=clover.xml; fi
31+
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then ./vendor/bin/phpunit; fi
3232

3333
- if [[ $PHPCS = 1 ]]; then ./vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
3434

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"require-dev": {
4444
"cakephp/cakephp": ">=3.2",
4545
"cakephp/cakephp-codesniffer": "2.*",
46-
"phpunit/phpunit": "4.1.*"
46+
"phpunit/phpunit": "<6.0"
4747
},
4848
"autoload": {
4949
"psr-4": {

tests/TestCase/Model/EndpointTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ public function testDisplaySet()
321321
$this->assertEquals('foo', $endpoint->displayField());
322322
}
323323

324-
325324
/**
326325
* Tests schema method
327326
*

tests/bootstrap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
ConnectionManager::config('test', $config);
101101
ConnectionManager::config('test_webservice', $config);
102102

103-
104103
Log::config([
105104
'debug' => [
106105
'engine' => 'Cake\Log\Engine\FileLog',

tests/test_app/Model/Endpoint/TestEndpoint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
class TestEndpoint extends Endpoint
99
{
1010

11-
1211
/**
1312
* Returns the default validator object. Subclasses can override this function
1413
* to add a default validation set to the validator object.

tests/test_app/Webservice/EndpointTestWebservice.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public function initialize()
4545
];
4646
}
4747

48-
4948
protected function _executeCreateQuery(Query $query, array $options = [])
5049
{
5150
$fields = $query->set();

0 commit comments

Comments
 (0)