Skip to content

Commit e0d7b0e

Browse files
davidyellDavid Yell
authored andcommitted
Updated the phpunit version to be greater than 5.7.0 for latest CakePHP test suite. Also dropped PHP5.5 testing, and swapped to using the composer installed phpunit binary instead of the travis boxes binary
1 parent bcd3fe6 commit e0d7b0e

File tree

6 files changed

+4
-9
lines changed

6 files changed

+4
-9
lines changed

.travis.yml

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

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

98
dist: trusty
109

@@ -27,8 +26,8 @@ before_script:
2726
- composer install --prefer-dist --no-interaction
2827

2928
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
29+
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then ./vendor/bin/phpunit --coverage-clover=clover.xml; fi
30+
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then ./vendor/bin/phpunit; fi
3231

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

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": "5.7.*"
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)