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.
2 parents 2075b32 + 198a958 commit 1eb6175Copy full SHA for 1eb6175
tests/Unit/DirectoryCleanerTest.php
@@ -68,13 +68,13 @@ public function testCanDeleteRecursiveDirectoryStructure() {
68
touch( $path . '/../test-g.txt' );
69
touch( $path . '/../../test-f.txt' );
70
71
- $this->assertTrue(file_exists($path. '/test-h.txt'));
72
- $this->assertTrue(is_dir($path));
+ $this->assertFileExists($path. '/test-h.txt');
+ $this->assertDirectoryExists($path);
73
74
$this->cleaner->process(new FileInfo($base));
75
76
- $this->assertFalse(file_exists($path. '/test-h.txt'), 'File vanished');
77
- $this->assertFalse(is_dir($base), 'Directory vanished');
+ $this->assertFileNotExists($path. '/test-h.txt', 'File vanished');
+ $this->assertDirectoryNotExists($base, 'Directory vanished');
78
79
}
80
0 commit comments