@@ -842,6 +842,7 @@ public function testWithQueryVarAddsQueryVarWithoutMutatingOriginal(): void
842842
843843 $ new = $ uri ->withQueryVar ('bar ' , 'baz ' );
844844
845+ $ this ->assertNotSame ($ uri , $ new );
845846 $ this ->assertSame ('http://example.com/foo?bar=baz ' , (string ) $ new );
846847 $ this ->assertSame ('http://example.com/foo ' , (string ) $ uri );
847848 }
@@ -853,6 +854,7 @@ public function testWithQueryVarReplacesQueryVarAndPreservesFragment(): void
853854
854855 $ new = $ uri ->withQueryVar ('bar ' , 'foz ' );
855856
857+ $ this ->assertNotSame ($ uri , $ new );
856858 $ this ->assertSame ('http://example.com/foo?bar=foz#section ' , (string ) $ new );
857859 $ this ->assertSame ('http://example.com/foo?bar=baz#section ' , (string ) $ uri );
858860 }
@@ -864,6 +866,7 @@ public function testWithQueryVarKeepsEmptyStringQueryVar(): void
864866
865867 $ new = $ uri ->withQueryVar ('bar ' , '' );
866868
869+ $ this ->assertNotSame ($ uri , $ new );
867870 $ this ->assertSame ('http://example.com/foo?bar= ' , (string ) $ new );
868871 $ this ->assertSame ('http://example.com/foo?bar=baz ' , (string ) $ uri );
869872 }
@@ -878,6 +881,7 @@ public function testWithQueryVarsAddsAndReplacesWithoutMutatingOriginal(): void
878881 'new ' => 'value ' ,
879882 ]);
880883
884+ $ this ->assertNotSame ($ uri , $ new );
881885 $ this ->assertSame ('http://example.com/foo?foo=bar&bar=baz&baz=updated&new=value#section ' , (string ) $ new );
882886 $ this ->assertSame ('http://example.com/foo?foo=bar&bar=baz&baz=foz#section ' , (string ) $ uri );
883887 }
0 commit comments