summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStefan Andres Charsley <[email protected]>2014-05-29 18:57:18 +1200
committerStefan Andres Charsley <[email protected]>2014-05-29 18:57:18 +1200
commit0e42e9c0e143002c605b5750db5f3b655b3508c5 (patch)
tree1110fa8c474169199b907394f2757bd845ac4495 /test
parentf66574f7f59059173b3cd5185dfc362762747b68 (diff)
Fixed testing logic.
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 fe98ad1..8790dc7 100644
--- a/test/bootstrap.php
+++ b/test/bootstrap.php
@@ -50,7 +50,7 @@ class MockPDOStatement extends PDOStatement {
{
// Do check on index, and type
if (!is_int($index)) throw new Exception('Incorrect parameter type. Expected $index to be an integer.');
- if (!is_int($type) || $type != PDO::PARAM_STR || $type != PDO::PARAM_NULL || $type != PDO::PARAM_BOOL || $type != PDO::PARAM_INT)
+ if (!is_int($type) || ($type != PDO::PARAM_STR && $type != PDO::PARAM_NULL && $type != PDO::PARAM_BOOL && $type != PDO::PARAM_INT))
throw new Exception('Incorrect parameter type. Expected $type to be an integer.');
// Add param to array