From e158cc1d3b1fb33de5aaa1aaac0c7828016fb7b9 Mon Sep 17 00:00:00 2001 From: Daniel Opitz Date: Tue, 16 Oct 2018 22:37:48 +0200 Subject: use magic class constant instead of classname strings --- tests/Unit/Utility/ProxyConfigParserTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/Unit/Utility/ProxyConfigParserTest.php') diff --git a/tests/Unit/Utility/ProxyConfigParserTest.php b/tests/Unit/Utility/ProxyConfigParserTest.php index 34a7e4502..1433558e7 100644 --- a/tests/Unit/Utility/ProxyConfigParserTest.php +++ b/tests/Unit/Utility/ProxyConfigParserTest.php @@ -15,6 +15,7 @@ namespace OCA\News\Tests\Unit\Utility; use OCA\News\Utility\ProxyConfigParser; +use OCP\IConfig; use PHPUnit\Framework\TestCase; class ProxyConfigParserTest extends TestCase @@ -27,9 +28,7 @@ class ProxyConfigParserTest extends TestCase protected function setUp() { - $this->config = $this->getMockBuilder( - '\OCP\IConfig' - ) + $this->config = $this->getMockBuilder(IConfig::class) ->disableOriginalConstructor() ->getMock(); $this->parser = new ProxyConfigParser($this->config); -- cgit v1.2.3