Skip to content

Commit 011a1bd

Browse files
committed
test: add tests
1 parent 21a81ad commit 011a1bd

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

tests/system/HTTP/URITest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,22 @@ public function testSetURISilent()
978978
$this->assertTrue(true);
979979
}
980980

981+
public function testCreateURIStringNoArguments()
982+
{
983+
$uri = URI::createURIString();
984+
985+
$expected = '';
986+
$this->assertSame($expected, $uri);
987+
}
988+
989+
public function testCreateURIStringOnlyAuthority()
990+
{
991+
$uri = URI::createURIString(null, 'example.com');
992+
993+
$expected = 'example.com';
994+
$this->assertSame($expected, $uri);
995+
}
996+
981997
public function testCreateURIString()
982998
{
983999
$uri = URI::createURIString('https', 'example.com', '/');

0 commit comments

Comments
 (0)