Skip to content

Commit 68a4be7

Browse files
committed
test against latest CakePHP version and run tests with PHPUnit 6.x
1 parent f816e5f commit 68a4be7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"php": ">=5.6.0"
2222
},
2323
"require-dev": {
24-
"cakephp/cakephp": "3.4.*",
25-
"phpunit/phpunit": "~5.7",
26-
"cakephp/cakephp-codesniffer": "dev-master"
24+
"cakephp/cakephp": "3.*",
25+
"phpunit/phpunit": "6.*",
26+
"cakephp/cakephp-codesniffer": "3.*"
2727
},
2828
"autoload": {
2929
"psr-4": {

tests/TestCase/AllEnvironmentTestsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class AllEnvironmentTestsTest extends TestSuite
1212
*/
1313
public static function suite()
1414
{
15-
$suite = new TestSuite('All Environment Tests');
15+
$suite = new TestSuite();
1616

1717
$path = dirname(__FILE__) . DS;
1818
$suite->addTestDirectoryRecursive($path);

tests/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@
1313
require dirname(__DIR__) . '/vendor/autoload.php';
1414
// include paths from CakePHP
1515
require dirname(__DIR__) . '/tests/paths.php';
16+
// include cakephp basics
17+
require dirname(__DIR__) . '/vendor/cakephp/cakephp/src/basics.php';
1618
// disable cache to avoid errors on tests
1719
\Cake\Cache\Cache::disable();

0 commit comments

Comments
 (0)