test: move lines

This commit is contained in:
kenjis 2023-02-22 13:29:35 +09:00
parent 1950d23e5b
commit 7c8c7036e4
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -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');
} }