Skip to content

Commit

Permalink
add NULL tests, #40
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Feb 28, 2017
1 parent e303fdc commit 34a8916
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,18 @@ function run($db,$type)
$type.': enhanced IN, NOT IN operator'
);

$result = $cx->find(array('num1 = ?',NULL));
$test->expect(
count($result) == 1 && $result[0]->title == 'bar1',
$type.': check NULL'
);

$result = $cx->find(array('num2 != ?',NULL));
$test->expect(
count($result) == 3,
$type.': check NOT NULL'
);

///////////////////////////////////
return $test->results();
}
Expand Down

0 comments on commit 34a8916

Please sign in to comment.