protected function FileValidatorTest::tearDown in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/Constraints/FileValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\FileValidatorTest::tearDown()
Overrides AbstractConstraintValidatorTest::tearDown
File
- vendor/symfony/ validator/ Tests/ Constraints/ FileValidatorTest.php, line 44 
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
protected function tearDown() {
  parent::tearDown();
  if (is_resource($this->file)) {
    fclose($this->file);
  }
  if (file_exists($this->path)) {
    unlink($this->path);
  }
  $this->path = null;
  $this->file = null;
}