Try without autoloading

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2018-03-06 13:56:44 +01:00
parent 97c4c00e3f
commit 09d8387b00
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class SimpleContainer extends Container implements IContainer {
try {
$parameters[] = $this->query($resolveName);
} catch (\Exception $e) {
if (class_exists("PHPUnit_Framework_AssertionFailedError") &&
if (class_exists("PHPUnit_Framework_AssertionFailedError", false) &&
$e instanceof \PHPUnit_Framework_AssertionFailedError) {
// Easier debugging of "Your test case is not allowed to access the database."
throw $e;