Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristi Cotet committed Dec 15, 2017
2 parents 2075b32 + 198a958 commit 1eb6175
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/DirectoryCleanerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ public function testCanDeleteRecursiveDirectoryStructure() {
touch( $path . '/../test-g.txt' );
touch( $path . '/../../test-f.txt' );

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

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

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

}

Expand Down

0 comments on commit 1eb6175

Please sign in to comment.