diff options
-rw-r--r-- | test/bootstrap.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/bootstrap.php b/test/bootstrap.php index 7256e51..9a40762 100644 --- a/test/bootstrap.php +++ b/test/bootstrap.php @@ -26,6 +26,10 @@ class MockPDOStatement extends PDOStatement { $m = array(); if (preg_match_all('/"[^"\\\\]*(?:\\?)[^"\\\\]*"|\'[^\'\\\\]*(?:\\?)[^\'\\\\]*\'|(\\?)/', $this->statement, $m, PREG_SET_ORDER)) { $count = count($m); + for ($v = 0; $v < $count; $v++) { + if (count($m[$v]) == 1) unset($m[$v]); + } + $count = count($m); for ($i = 0; $i < $count; $i++) { if (!isset($params[$i])) { ob_start(); |