aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CacheTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-07-23 14:16:07 +0200
committerArthurHoaro <arthur@hoa.ro>2016-07-23 14:16:07 +0200
commit87f9f4f9b7f3fa1aa51aa4e3cfa9f36680972e4e (patch)
treeb1a72428a2e16292f061a3dd8280bcc90d6cdbd8 /tests/CacheTest.php
parent0c4c7ae818336d5b0f94562e551ca1a3f34d3435 (diff)
downloadShaarli-87f9f4f9b7f3fa1aa51aa4e3cfa9f36680972e4e.tar.gz
Shaarli-87f9f4f9b7f3fa1aa51aa4e3cfa9f36680972e4e.tar.zst
Shaarli-87f9f4f9b7f3fa1aa51aa4e3cfa9f36680972e4e.zip
Hide expected 'error_log' while running TU (clean PHPUnit log)
Diffstat (limited to 'tests/CacheTest.php')
-rw-r--r--tests/CacheTest.php3
1 files changed, 3 insertions, 0 deletions
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
64 */ 64 */
65 public function testPurgeCachedPagesMissingDir() 65 public function testPurgeCachedPagesMissingDir()
66 { 66 {
67 $oldlog = ini_get('error_log');
68 ini_set('error_log', '/dev/null');
67 $this->assertEquals( 69 $this->assertEquals(
68 'Cannot purge sandbox/dummycache_missing: no directory', 70 'Cannot purge sandbox/dummycache_missing: no directory',
69 purgeCachedPages(self::$testCacheDir.'_missing') 71 purgeCachedPages(self::$testCacheDir.'_missing')
70 ); 72 );
73 ini_set('error_log', $oldlog);
71 } 74 }
72 75
73 /** 76 /**