You are here

protected function FileValidatorTest::tearDown in Plug 7

Overrides AbstractConstraintValidatorTest::tearDown

File

lib/Symfony/validator/Symfony/Component/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;
}