PhpSchool\LearnYouPhp\Exercise\FilteredLs::tearDown PHP Метод

tearDown() публичный Метод

public tearDown ( ) : null
Результат null
    public function tearDown()
    {
        $this->filesystem->remove($this->getTemporaryPath());
    }

Usage Example

Пример #1
0
 public function testTearDownRemovesFile()
 {
     $e = new FilteredLs($this->filesystem);
     $args = $e->getArgs();
     $path = $args[0];
     $this->assertFileExists($path);
     $e->tearDown();
     $this->assertFileNotExists($path);
 }