You are here

public function CacheWarmerTest::testWriteNonWritableCacheFileThrowsARuntimeException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php \Symfony\Component\HttpKernel\Tests\CacheWarmer\CacheWarmerTest::testWriteNonWritableCacheFileThrowsARuntimeException()

@expectedException \RuntimeException

File

vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php, line 41

Class

CacheWarmerTest

Namespace

Symfony\Component\HttpKernel\Tests\CacheWarmer

Code

public function testWriteNonWritableCacheFileThrowsARuntimeException() {
  $nonWritableFile = '/this/file/is/very/probably/not/writable';
  $warmer = new TestCacheWarmer($nonWritableFile);
  $warmer
    ->warmUp(dirname($nonWritableFile));
}