Skip to content

Commit 1eb6175

Browse files
author
Cristi Cotet
committed
Merge remote-tracking branch 'upstream/master'
2 parents 2075b32 + 198a958 commit 1eb6175

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Unit/DirectoryCleanerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ public function testCanDeleteRecursiveDirectoryStructure() {
6868
touch( $path . '/../test-g.txt' );
6969
touch( $path . '/../../test-f.txt' );
7070

71-
$this->assertTrue(file_exists($path. '/test-h.txt'));
72-
$this->assertTrue(is_dir($path));
71+
$this->assertFileExists($path. '/test-h.txt');
72+
$this->assertDirectoryExists($path);
7373

7474
$this->cleaner->process(new FileInfo($base));
7575

76-
$this->assertFalse(file_exists($path. '/test-h.txt'), 'File vanished');
77-
$this->assertFalse(is_dir($base), 'Directory vanished');
76+
$this->assertFileNotExists($path. '/test-h.txt', 'File vanished');
77+
$this->assertDirectoryNotExists($base, 'Directory vanished');
7878

7979
}
8080

0 commit comments

Comments
 (0)