From ff7ea1681e9af985dbda3608c59ea63b70d2f5c1 Mon Sep 17 00:00:00 2001
From: Gabriel Caruso <carusogabriel34@gmail.com>
Date: Sat, 9 Dec 2017 03:16:24 -0200
Subject: [PATCH] Use assertFileExists and assertDirectoryExists

---
 tests/Unit/DirectoryCleanerTest.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/Unit/DirectoryCleanerTest.php b/tests/Unit/DirectoryCleanerTest.php
index 1276a625..82ab9932 100644
--- a/tests/Unit/DirectoryCleanerTest.php
+++ b/tests/Unit/DirectoryCleanerTest.php
@@ -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');
 
         }