summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStefan Andres Charsley <[email protected]>2014-01-12 11:12:08 +1300
committerSimon Holywell <[email protected]>2014-04-26 13:27:54 +0100
commit87505a3271fa681cab90c0c306f47827713e510b (patch)
tree19aed65ca569f6821d95143e33dad8c316db0416 /test
parent7b29b766fbe4b3db7601ef045b9c29e6b91736ea (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.php2
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.');