Skip to content

Commit 7c8c703

Browse files
committed
test: move lines
1 parent 1950d23 commit 7c8c703

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/system/HTTP/URITest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,8 @@ public function testKeepQueryVars()
752752
public function testEmptyQueryVars()
753753
{
754754
$base = 'http://example.com/foo';
755+
$uri = new URI($base);
755756

756-
$uri = new URI($base);
757757
$uri->setQuery('foo=&bar=baz&baz=foz');
758758

759759
$this->assertSame('http://example.com/foo?foo=&bar=baz&baz=foz', (string) $uri);
@@ -806,8 +806,8 @@ public function testNoExtraSlashes()
806806
public function testSetSegment()
807807
{
808808
$base = 'http://example.com/foo/bar/baz';
809+
$uri = new URI($base);
809810

810-
$uri = new URI($base);
811811
$uri->setSegment(2, 'banana');
812812

813813
$this->assertSame('foo/banana/baz', $uri->getPath());
@@ -846,8 +846,8 @@ public function testSetBadSegment()
846846
$this->expectException(HTTPException::class);
847847

848848
$base = 'http://example.com/foo/bar/baz';
849+
$uri = new URI($base);
849850

850-
$uri = new URI($base);
851851
$uri->setSegment(6, 'banana');
852852
}
853853

0 commit comments

Comments
 (0)