Skip to content

Commit 7baf84d

Browse files
author
Roger Russel
committed
Include assertFileExists , assertFileNotExists and some others tests, I do not know if it was necessary, but ended up doing anyway.
1 parent b55d479 commit 7baf84d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/unit/Codeception/Module/AssertsTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ public function testAsserts()
1010
$module->assertNotSame(1,true);
1111
$module->assertRegExp('/^[\d]$/','1');
1212
$module->assertNotRegExp('/^[a-z]$/','1');
13+
$module->assertEmpty([]);
14+
$module->assertNotEmpty([1]);
15+
$module->assertNull(null);
16+
$module->assertNotNull('');
17+
$module->assertNotNull(false);
18+
$module->assertNotNull(0);
19+
$module->assertTrue(true);
20+
$module->assertFalse(false);
21+
$module->assertFileExists(__FILE__);
22+
$module->assertFileNotExists(__FILE__ . '.notExist');
1323
}
1424

1525
}

0 commit comments

Comments
 (0)