From d4b9b010b0cb753a86af63cb917020e790555036 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 27 Oct 2022 13:24:28 +0200 Subject: Rename LocalAddressChecker methods to lower case Signed-off-by: Christoph Wurst --- tests/lib/Http/Client/ClientTest.php | 10 +++++----- tests/lib/Http/Client/LocalAddressCheckerTest.php | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/lib/Http') diff --git a/tests/lib/Http/Client/ClientTest.php b/tests/lib/Http/Client/ClientTest.php index 25d4749df57..fa2374aeb7e 100644 --- a/tests/lib/Http/Client/ClientTest.php +++ b/tests/lib/Http/Client/ClientTest.php @@ -203,7 +203,7 @@ class ClientTest extends \Test\TestCase { $this->expectException(LocalServerException::class); $this->localAddressChecker ->expects($this->once()) - ->method('ThrowIfLocalAddress') + ->method('throwIfLocalAddress') ->with('http://' . $uri) ->will($this->throwException(new LocalServerException())); @@ -218,7 +218,7 @@ class ClientTest extends \Test\TestCase { $this->expectException(LocalServerException::class); $this->localAddressChecker ->expects($this->once()) - ->method('ThrowIfLocalAddress') + ->method('throwIfLocalAddress') ->with('http://' . $uri) ->will($this->throwException(new LocalServerException())); @@ -233,7 +233,7 @@ class ClientTest extends \Test\TestCase { $this->expectException(LocalServerException::class); $this->localAddressChecker ->expects($this->once()) - ->method('ThrowIfLocalAddress') + ->method('throwIfLocalAddress') ->with('http://' . $uri) ->will($this->throwException(new LocalServerException())); @@ -248,7 +248,7 @@ class ClientTest extends \Test\TestCase { $this->expectException(LocalServerException::class); $this->localAddressChecker ->expects($this->once()) - ->method('ThrowIfLocalAddress') + ->method('throwIfLocalAddress') ->with('http://' . $uri) ->will($this->throwException(new LocalServerException())); @@ -263,7 +263,7 @@ class ClientTest extends \Test\TestCase { $this->expectException(LocalServerException::class); $this->localAddressChecker ->expects($this->once()) - ->method('ThrowIfLocalAddress') + ->method('throwIfLocalAddress') ->with('http://' . $uri) ->will($this->throwException(new LocalServerException())); diff --git a/tests/lib/Http/Client/LocalAddressCheckerTest.php b/tests/lib/Http/Client/LocalAddressCheckerTest.php index 8c8e64eddf9..024c52b3705 100644 --- a/tests/lib/Http/Client/LocalAddressCheckerTest.php +++ b/tests/lib/Http/Client/LocalAddressCheckerTest.php @@ -47,7 +47,7 @@ class LocalAddressCheckerTest extends \Test\TestCase { */ public function testThrowIfLocalAddress($uri) : void { $this->expectException(LocalServerException::class); - $this->localAddressChecker->ThrowIfLocalAddress('http://' . $uri); + $this->localAddressChecker->throwIfLocalAddress('http://' . $uri); } /** @@ -55,7 +55,7 @@ class LocalAddressCheckerTest extends \Test\TestCase { * @param string $uri */ public function testThrowIfLocalAddressGood($uri) : void { - $this->localAddressChecker->ThrowIfLocalAddress('http://' . $uri); + $this->localAddressChecker->throwIfLocalAddress('http://' . $uri); $this->assertTrue(true); } @@ -66,7 +66,7 @@ class LocalAddressCheckerTest extends \Test\TestCase { */ public function testThrowIfLocalIpBad($ip) : void { $this->expectException(LocalServerException::class); - $this->localAddressChecker->ThrowIfLocalIp($ip); + $this->localAddressChecker->throwIfLocalIp($ip); } /** @@ -74,7 +74,7 @@ class LocalAddressCheckerTest extends \Test\TestCase { * @param string $ip */ public function testThrowIfLocalIpGood($ip) : void { - $this->localAddressChecker->ThrowIfLocalIp($ip); + $this->localAddressChecker->throwIfLocalIp($ip); $this->assertTrue(true); } -- cgit v1.2.3