From 87f9f4f9b7f3fa1aa51aa4e3cfa9f36680972e4e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 23 Jul 2016 14:16:07 +0200 Subject: Hide expected 'error_log' while running TU (clean PHPUnit log) --- tests/CacheTest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/CacheTest.php') 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); } /** -- cgit v1.2.3