Skip to content

Commit

Permalink
Merge pull request #5 from rochamarcelo/hotfix/unittests
Browse files Browse the repository at this point in the history
fixed unit tests for new versions of phpunit
  • Loading branch information
rochamarcelo authored Apr 7, 2018
2 parents e850c05 + 86f36ec commit 6b55c38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion tests/TestCase/Di/DiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function testSetMany()
'type' => 'factory'
]
];
$Di = $this->getMock('RochaMarcelo\CakePimpleDi\Di\Di', ['set']);
$Di = $this->getMockBuilder('RochaMarcelo\CakePimpleDi\Di\Di')->setMethods(['set'])->getMock();

$Di->expects($this->at(0))
->method('set')
Expand Down
1 change: 0 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
require_once 'vendor/autoload.php';

// Path constants to a few helpful things.
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__DIR__) . DS);
define('CAKE_CORE_INCLUDE_PATH', ROOT . 'vendor' . DS . 'cakephp' . DS . 'cakephp');
define('CORE_PATH', ROOT . 'vendor' . DS . 'cakephp' . DS . 'cakephp' . DS);
Expand Down

0 comments on commit 6b55c38

Please sign in to comment.