mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
test: move lines
This commit is contained in:
parent
1950d23e5b
commit
7c8c7036e4
@ -752,8 +752,8 @@ final class URITest extends CIUnitTestCase
|
|||||||
public function testEmptyQueryVars()
|
public function testEmptyQueryVars()
|
||||||
{
|
{
|
||||||
$base = 'http://example.com/foo';
|
$base = 'http://example.com/foo';
|
||||||
|
$uri = new URI($base);
|
||||||
|
|
||||||
$uri = new URI($base);
|
|
||||||
$uri->setQuery('foo=&bar=baz&baz=foz');
|
$uri->setQuery('foo=&bar=baz&baz=foz');
|
||||||
|
|
||||||
$this->assertSame('http://example.com/foo?foo=&bar=baz&baz=foz', (string) $uri);
|
$this->assertSame('http://example.com/foo?foo=&bar=baz&baz=foz', (string) $uri);
|
||||||
@ -806,8 +806,8 @@ final class URITest extends CIUnitTestCase
|
|||||||
public function testSetSegment()
|
public function testSetSegment()
|
||||||
{
|
{
|
||||||
$base = 'http://example.com/foo/bar/baz';
|
$base = 'http://example.com/foo/bar/baz';
|
||||||
|
$uri = new URI($base);
|
||||||
|
|
||||||
$uri = new URI($base);
|
|
||||||
$uri->setSegment(2, 'banana');
|
$uri->setSegment(2, 'banana');
|
||||||
|
|
||||||
$this->assertSame('foo/banana/baz', $uri->getPath());
|
$this->assertSame('foo/banana/baz', $uri->getPath());
|
||||||
@ -846,8 +846,8 @@ final class URITest extends CIUnitTestCase
|
|||||||
$this->expectException(HTTPException::class);
|
$this->expectException(HTTPException::class);
|
||||||
|
|
||||||
$base = 'http://example.com/foo/bar/baz';
|
$base = 'http://example.com/foo/bar/baz';
|
||||||
|
$uri = new URI($base);
|
||||||
|
|
||||||
$uri = new URI($base);
|
|
||||||
$uri->setSegment(6, 'banana');
|
$uri->setSegment(6, 'banana');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user