We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f8480 commit 9215be5Copy full SHA for 9215be5
src/Codeception/Module/Db.php
@@ -224,6 +224,18 @@
224
* ```sql
225
* SELECT COUNT(*) FROM `users` WHERE `name` = 'Davert' AND `email` LIKE 'davert%'
226
* ```
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
239
* ## Public Properties
240
* * dbh - contains the PDO connection
241
* * driver - contains the Connection Driver
0 commit comments