summaryrefslogtreecommitdiff
path: root/test/bootstrap.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/bootstrap.php')
-rw-r--r--test/bootstrap.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/bootstrap.php b/test/bootstrap.php
index 18ae16b..90d38c4 100644
--- a/test/bootstrap.php
+++ b/test/bootstrap.php
@@ -27,7 +27,12 @@ class MockPDOStatement extends PDOStatement {
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.');
+ if ($params[$i] == NULL) {
+ ob_start();
+ var_dump($m, $params);
+ $output = ob_get_clean();
+ throw new Exception('Incorrect parameter count. Expected ' . $count . ' got ' . count($params) . '.\n' . $output);
+ }
}
}
}