You are here

protected function FileValidatorTest::tearDown in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

FileValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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;
}