Skip to content

Commit 9215be5

Browse files
committed
Documentation for null comparisons added
1 parent 47f8480 commit 9215be5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Codeception/Module/Db.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,18 @@
224224
* ```sql
225225
* SELECT COUNT(*) FROM `users` WHERE `name` = 'Davert' AND `email` LIKE 'davert%'
226226
* ```
227+
* Null comparisons are also available, as shown here:
228+
*
229+
* ```php
230+
* <?php
231+
* $I->seeInDatabase('users', ['name' => null, 'email !=' => null]);
232+
*
233+
* ```
234+
* Will generate:
235+
*
236+
* ```sql
237+
* SELECT COUNT(*) FROM `users` WHERE `name` IS NULL AND `email` IS NOT NULL
238+
* ```
227239
* ## Public Properties
228240
* * dbh - contains the PDO connection
229241
* * driver - contains the Connection Driver

0 commit comments

Comments
 (0)