|
|
@@ -271,14 +271,14 @@ class ErrorHandlerTest extends TestCase
|
|
|
->method('log')
|
|
|
->with('error', $this->logicalAnd(
|
|
|
$this->stringContains('[Cake\Http\Exception\NotFoundException] Kaboom!'),
|
|
|
- $this->stringContains('vendor/phpunit/phpunit/src/Framework/TestCase.php')
|
|
|
+ $this->stringContains(str_replace('/', DS, 'vendor/phpunit/phpunit/src/Framework/TestCase.php'))
|
|
|
));
|
|
|
|
|
|
$this->_logger->expects($this->at(1))
|
|
|
->method('log')
|
|
|
->with('error', $this->logicalAnd(
|
|
|
$this->stringContains('[Cake\Http\Exception\NotFoundException] Kaboom!'),
|
|
|
- $this->logicalNot($this->stringContains('vendor/phpunit/phpunit/src/Framework/TestCase.php'))
|
|
|
+ $this->logicalNot($this->stringContains(str_replace('/', DS, 'vendor/phpunit/phpunit/src/Framework/TestCase.php')))
|
|
|
));
|
|
|
|
|
|
$errorHandler->handleException($error);
|
|
|
@@ -352,7 +352,7 @@ class ErrorHandlerTest extends TestCase
|
|
|
->with('error', $this->logicalAnd(
|
|
|
$this->stringContains('[Cake\Http\Exception\NotFoundException] Kaboom!'),
|
|
|
$this->stringContains('Caused by: [Cake\Datasource\Exception\RecordNotFoundException] Previous logged'),
|
|
|
- $this->stringContains('vendor/phpunit/phpunit/src/Framework/TestCase.php')
|
|
|
+ $this->stringContains(str_replace('/', DS, 'vendor/phpunit/phpunit/src/Framework/TestCase.php'))
|
|
|
));
|
|
|
|
|
|
$errorHandler->handleException($error);
|