Skip to content

Commit 34a8916

Browse files
committed
add NULL tests, #40
1 parent e303fdc commit 34a8916

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/test_syntax.php

+12
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,18 @@ function run($db,$type)
338338
$type.': enhanced IN, NOT IN operator'
339339
);
340340

341+
$result = $cx->find(array('num1 = ?',NULL));
342+
$test->expect(
343+
count($result) == 1 && $result[0]->title == 'bar1',
344+
$type.': check NULL'
345+
);
346+
347+
$result = $cx->find(array('num2 != ?',NULL));
348+
$test->expect(
349+
count($result) == 3,
350+
$type.': check NOT NULL'
351+
);
352+
341353
///////////////////////////////////
342354
return $test->results();
343355
}

0 commit comments

Comments
 (0)