diff --git a/tests/KdybyTests/Doctrine/DibiBridgeTest.phpt b/tests/KdybyTests/Doctrine/DibiBridgeTest.phpt index 04683f19..cd9e3fd3 100644 --- a/tests/KdybyTests/Doctrine/DibiBridgeTest.phpt +++ b/tests/KdybyTests/Doctrine/DibiBridgeTest.phpt @@ -13,7 +13,6 @@ namespace KdybyTests\DibiBridge; use Doctrine; use Kdyby; use Kdyby\Doctrine\Connection; -use Nette; use Tester; use Tester\Assert; @@ -21,6 +20,11 @@ require_once __DIR__ . '/../bootstrap.php'; +if (!function_exists('set_magic_quotes_runtime')) { + // BC Break fix for PHP 7.1 + eval('namespace { function set_magic_quotes_runtime() {} } '); +} + /** * This test is here just to ensure compatibility of Dibi. *