From 87505a3271fa681cab90c0c306f47827713e510b Mon Sep 17 00:00:00 2001 From: Stefan Andres Charsley Date: Sun, 12 Jan 2014 11:12:08 +1300 Subject: FIX: Added parameter array checking Fixed regex issue that caused almost all tests to fail. --- test/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bootstrap.php b/test/bootstrap.php index 97f497f..7277761 100644 --- a/test/bootstrap.php +++ b/test/bootstrap.php @@ -24,7 +24,7 @@ class MockPDOStatement extends PDOStatement { public function execute($params) { $count = 0; $m = array(); - if (preg_match_all('\\?', $this->statement, $m)) { + if (preg_match_all('/\\?/', $this->statement, $m)) { $count = count($m); for ($i = 0; $i < $count; $i++) { if ($params[$i] == NULL) throw new Exception('Incorrect parameter count.'); -- cgit v1.2.3