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/ApplicationUtilsTest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/ApplicationUtilsTest.php') diff --git a/tests/ApplicationUtilsTest.php b/tests/ApplicationUtilsTest.php index c37a94f0..861b8d4e 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); } /** -- cgit v1.2.3