diff options
author | Stefan Andres Charsley <[email protected]> | 2014-01-12 11:12:08 +1300 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2014-04-26 13:27:54 +0100 |
commit | 87505a3271fa681cab90c0c306f47827713e510b (patch) | |
tree | 19aed65ca569f6821d95143e33dad8c316db0416 /test | |
parent | 7b29b766fbe4b3db7601ef045b9c29e6b91736ea (diff) |
FIX: Added parameter array checking
Fixed regex issue that caused almost all tests to fail.
Diffstat (limited to 'test')
-rw-r--r-- | test/bootstrap.php | 2 |
1 files changed, 1 insertions, 1 deletions
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.'); |