diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-07-23 14:16:07 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-07-23 14:16:07 +0200 |
commit | 87f9f4f9b7f3fa1aa51aa4e3cfa9f36680972e4e (patch) | |
tree | b1a72428a2e16292f061a3dd8280bcc90d6cdbd8 /tests/ApplicationUtilsTest.php | |
parent | 0c4c7ae818336d5b0f94562e551ca1a3f34d3435 (diff) | |
download | Shaarli-87f9f4f9b7f3fa1aa51aa4e3cfa9f36680972e4e.tar.gz Shaarli-87f9f4f9b7f3fa1aa51aa4e3cfa9f36680972e4e.tar.zst Shaarli-87f9f4f9b7f3fa1aa51aa4e3cfa9f36680972e4e.zip |
Hide expected 'error_log' while running TU (clean PHPUnit log)
Diffstat (limited to 'tests/ApplicationUtilsTest.php')
-rw-r--r-- | tests/ApplicationUtilsTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
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 | |||
75 | */ | 75 | */ |
76 | public function testGetLatestGitVersionCodeInvalidUrl() | 76 | public function testGetLatestGitVersionCodeInvalidUrl() |
77 | { | 77 | { |
78 | $oldlog = ini_get('error_log'); | ||
79 | ini_set('error_log', '/dev/null'); | ||
78 | $this->assertFalse( | 80 | $this->assertFalse( |
79 | ApplicationUtils::getLatestGitVersionCode('htttp://null.io', 1) | 81 | ApplicationUtils::getLatestGitVersionCode('htttp://null.io', 1) |
80 | ); | 82 | ); |
83 | ini_set('error_log', $oldlog); | ||
81 | } | 84 | } |
82 | 85 | ||
83 | /** | 86 | /** |