[HttpFoundation] fixed test cleanup
This commit is contained in:
parent
97679e5bda
commit
ef43b22546
@ -65,13 +65,14 @@ class MimeTypeTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$this->setExpectedException('Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException');
|
$this->setExpectedException('Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException');
|
||||||
MimeTypeGuesser::getInstance()->guess($path);
|
MimeTypeGuesser::getInstance()->guess($path);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function tearDownAfterClass()
|
public static function tearDownAfterClass()
|
||||||
{
|
{
|
||||||
$path = __DIR__.'/../Fixtures/to_delete';
|
$path = __DIR__.'/../Fixtures/to_delete';
|
||||||
chmod($path, 0666);
|
if (file_exists($path)) {
|
||||||
@unlink($path);
|
chmod($path, 0666);
|
||||||
|
@unlink($path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user