diff --git a/lib/private/AppFramework/Utility/SimpleContainer.php b/lib/private/AppFramework/Utility/SimpleContainer.php index 97cb772e3b..c2c2964b02 100644 --- a/lib/private/AppFramework/Utility/SimpleContainer.php +++ b/lib/private/AppFramework/Utility/SimpleContainer.php @@ -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;