diff options
author | Stefan Andres Charsley <[email protected]> | 2014-05-29 18:57:18 +1200 |
---|---|---|
committer | Stefan Andres Charsley <[email protected]> | 2014-05-29 18:57:18 +1200 |
commit | 0e42e9c0e143002c605b5750db5f3b655b3508c5 (patch) | |
tree | 1110fa8c474169199b907394f2757bd845ac4495 /test | |
parent | f66574f7f59059173b3cd5185dfc362762747b68 (diff) |
Fixed testing logic.
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 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 |