X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2FCacheTest.php;h=992e26a5502cea6afc15cc9756f85c7e507089d0;hb=9cc6ea6560660f6616dcd28d71d19625cf372a71;hp=26c432254a9d0e966d97f8a949681f035f808d7a;hpb=b6a54537b8823d2b96e9bdb64e280959d6681c36;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/CacheTest.php b/tests/CacheTest.php index 26c43225..992e26a5 100644 --- a/tests/CacheTest.php +++ b/tests/CacheTest.php @@ -64,10 +64,13 @@ class CacheTest extends PHPUnit_Framework_TestCase */ public function testPurgeCachedPagesMissingDir() { + $oldlog = ini_get('error_log'); + ini_set('error_log', '/dev/null'); $this->assertEquals( 'Cannot purge sandbox/dummycache_missing: no directory', purgeCachedPages(self::$testCacheDir.'_missing') ); + ini_set('error_log', $oldlog); } /**