summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php')
-rw-r--r--vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php b/vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php
index cee8b55034..b5acb12618 100644
--- a/vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php
+++ b/vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php
@@ -18,12 +18,12 @@ class CacheWarmerTest extends TestCase
{
protected static $cacheFile;
- public static function setUpBeforeClass()
+ public static function setUpBeforeClass(): void
{
self::$cacheFile = tempnam(sys_get_temp_dir(), 'sf_cache_warmer_dir');
}
- public static function tearDownAfterClass()
+ public static function tearDownAfterClass(): void
{
@unlink(self::$cacheFile);
}
@@ -36,11 +36,9 @@ class CacheWarmerTest extends TestCase
$this->assertFileExists(self::$cacheFile);
}
- /**
- * @expectedException \RuntimeException
- */
public function testWriteNonWritableCacheFileThrowsARuntimeException()
{
+ $this->expectException('RuntimeException');
$nonWritableFile = '/this/file/is/very/probably/not/writable';
$warmer = new TestCacheWarmer($nonWritableFile);
$warmer->warmUp(\dirname($nonWritableFile));