File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments