Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 33502cf

Browse files
committed
test isValidRelative() === false on absolute uri client send
1 parent 8dfffde commit 33502cf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/ClientTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,4 +549,12 @@ public function testSendRequestWithRelativeURI()
549549
$client->send();
550550
$this->assertTrue($client->getUri()->isValidRelative());
551551
}
552+
553+
public function testSendRequestWithAbsoluteURI()
554+
{
555+
$client = new Client('http://localhost/example');
556+
$client->setAdapter(Test::class);
557+
$client->send();
558+
$this->assertFalse($client->getUri()->isValidRelative());
559+
}
552560
}

0 commit comments

Comments
 (0)