|
|
|
|
@ -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()));
|
|
|
|
|
|
|
|
|
|
|