diff --git a/tests/ApplicationUtilsTest.php b/tests/ApplicationUtilsTest.php index c37a94f..861b8d4 100644 --- a/tests/ApplicationUtilsTest.php +++ b/tests/ApplicationUtilsTest.php @@ -75,9 +75,12 @@ class ApplicationUtilsTest extends PHPUnit_Framework_TestCase */ public function testGetLatestGitVersionCodeInvalidUrl() { + $oldlog = ini_get('error_log'); + ini_set('error_log', '/dev/null'); $this->assertFalse( ApplicationUtils::getLatestGitVersionCode('htttp://null.io', 1) ); + ini_set('error_log', $oldlog); } /** diff --git a/tests/CacheTest.php b/tests/CacheTest.php index 26c4322..992e26a 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); } /**