Skip to content

Commit 97bf88b

Browse files
committed
ITT: FilesystemAsserts tests added.
1 parent 02b0a24 commit 97bf88b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Asserts/FilesystemAssertsTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,20 @@ public function it_has_directory_not_empty_assertion()
1414
$this->assertDirectoryNotEmpty(__DIR__ . '/FilesystemAssertsTest/NotEmpty');
1515
$this->assertDirectoryNotEmpty(__DIR__ . '/FilesystemAssertsTest/WithSubDirectory');
1616
}
17+
18+
/** @test */
19+
public function it_has_files_count_assertion()
20+
{
21+
$this->assertFilesCount(__DIR__ . '/FilesystemAssertsTest/NotEmpty', 3);
22+
$this->assertFilesCount(__DIR__ . '/FilesystemAssertsTest/WithSubDirectory', 0);
23+
}
24+
25+
/** @test */
26+
public function it_has_not_files_count_assertion()
27+
{
28+
$this->assertNotFilesCount(__DIR__ . '/FilesystemAssertsTest/NotEmpty', 1);
29+
$this->assertNotFilesCount(__DIR__ . '/FilesystemAssertsTest/NotEmpty', 2);
30+
$this->assertNotFilesCount(__DIR__ . '/FilesystemAssertsTest/NotEmpty', 4);
31+
$this->assertNotFilesCount(__DIR__ . '/FilesystemAssertsTest/NotEmpty', 5);
32+
}
1733
}

0 commit comments

Comments
 (0)