diff --git a/tests/dibi/PdoDriver.providedConnection.phpt b/tests/dibi/PdoDriver.providedConnection.phpt index 41b0d513..eb524323 100644 --- a/tests/dibi/PdoDriver.providedConnection.phpt +++ b/tests/dibi/PdoDriver.providedConnection.phpt @@ -36,5 +36,5 @@ Assert::exception( test( 'PDO error mode: explicitly set silent', - fn() => buildPdoDriver(PDO::ERRMODE_SILENT) + fn() => buildPdoDriver(PDO::ERRMODE_SILENT), ); diff --git a/tests/dibi/Postgre.like.phpt b/tests/dibi/Postgre.like.phpt index b84c5c28..b6bed799 100644 --- a/tests/dibi/Postgre.like.phpt +++ b/tests/dibi/Postgre.like.phpt @@ -18,9 +18,9 @@ $tests = function ($conn) { Assert::false($conn->query("SELECT 'AAxBB' LIKE %~like~", 'A%B')->fetchSingle()); Assert::true($conn->query("SELECT 'AA%BB' LIKE %~like~", 'A%B')->fetchSingle()); - Assert::same('AA\\BB', $conn->query("SELECT 'AA\\BB'")->fetchSingle()); - Assert::false($conn->query("SELECT 'AAxBB' LIKE %~like~", 'A\\B')->fetchSingle()); - Assert::true($conn->query("SELECT 'AA\\BB' LIKE %~like~", 'A\\B')->fetchSingle()); + Assert::same('AA\BB', $conn->query("SELECT 'AA\\BB'")->fetchSingle()); + Assert::false($conn->query("SELECT 'AAxBB' LIKE %~like~", 'A\B')->fetchSingle()); + Assert::true($conn->query("SELECT 'AA\\BB' LIKE %~like~", 'A\B')->fetchSingle()); }; $conn = new Dibi\Connection($config); diff --git a/tests/dibi/Translator.like.phpt b/tests/dibi/Translator.like.phpt index ad7eebec..7387dba4 100644 --- a/tests/dibi/Translator.like.phpt +++ b/tests/dibi/Translator.like.phpt @@ -32,7 +32,7 @@ Assert::truthy($conn->fetchSingle('SELECT ? LIKE %like~', "a'a", "a'")); Assert::falsey($conn->fetchSingle('SELECT ? LIKE %like~', "b'", "%'")); Assert::truthy($conn->fetchSingle('SELECT ? LIKE %like~', "%'", "%'")); -Assert::truthy($conn->fetchSingle('SELECT ? LIKE %like~', 'a\\a', 'a\\')); +Assert::truthy($conn->fetchSingle('SELECT ? LIKE %like~', 'a\a', 'a\\')); Assert::falsey($conn->fetchSingle('SELECT ? LIKE %like~', 'b\\', '%\\')); Assert::truthy($conn->fetchSingle('SELECT ? LIKE %like~', '%\\', '%\\')); @@ -60,9 +60,9 @@ Assert::truthy($conn->fetchSingle('SELECT ? LIKE %~like', "a'a", "'a")); Assert::falsey($conn->fetchSingle('SELECT ? LIKE %~like', "'b", "'%")); Assert::truthy($conn->fetchSingle('SELECT ? LIKE %~like', "'%", "'%")); -Assert::truthy($conn->fetchSingle('SELECT ? LIKE %~like', 'a\\a', '\\a')); -Assert::falsey($conn->fetchSingle('SELECT ? LIKE %~like', '\\b', '\\%')); -Assert::truthy($conn->fetchSingle('SELECT ? LIKE %~like', '\\%', '\\%')); +Assert::truthy($conn->fetchSingle('SELECT ? LIKE %~like', 'a\a', '\a')); +Assert::falsey($conn->fetchSingle('SELECT ? LIKE %~like', '\b', '\%')); +Assert::truthy($conn->fetchSingle('SELECT ? LIKE %~like', '\%', '\%')); // contains