Exemplo n.º 1
0
 protected function tearDown()
 {
     parent::tearDown();
     $tmpFilesIterator = new \FilesystemIterator(self::$TEST_TMP_PATH);
     foreach ($tmpFilesIterator as $path => $fileInfo) {
         /* @var \SplFileInfo $fileInfo */
         unlink($fileInfo->getPathname());
     }
 }
Exemplo n.º 2
0
 protected function tearDown()
 {
     parent::tearDown();
     $tmpFilesIterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(self::$TEST_TMP_PATH, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::CHILD_FIRST);
     foreach ($tmpFilesIterator as $path => $fileInfo) {
         /* @var \SplFileInfo $fileInfo */
         $pathname = $fileInfo->getPathname();
         $fileInfo->isDir() ? rmdir($pathname) : unlink($pathname);
     }
 }