File tree 4 files changed +10
-17
lines changed
4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit bootstrap =" ./tests/bootstrap .php"
2
+ <phpunit bootstrap =" vendor/autoload .php"
3
3
colors =" true" >
4
4
<testsuites >
5
5
<testsuite >
9
9
<filter >
10
10
<whitelist >
11
11
<directory suffix =" .php" >src</directory >
12
- <exclude >
13
- <directory suffix =" Interface.php" >src/</directory >
14
- </exclude >
15
12
</whitelist >
16
13
</filter >
17
14
</phpunit >
Original file line number Diff line number Diff line change @@ -185,8 +185,8 @@ public static function isRelativePathReference(UriInterface $uri)
185
185
*/
186
186
public static function isSameDocumentReference (UriInterface $ uri , UriInterface $ base = null )
187
187
{
188
- if ($ base ) {
189
- $ uri = self ::resolve ($ base , $ uri );
188
+ if ($ base !== null ) {
189
+ $ uri = UriResolver ::resolve ($ base , $ uri );
190
190
191
191
return ($ uri ->getScheme () === $ base ->getScheme ())
192
192
&& ($ uri ->getAuthority () === $ base ->getAuthority ())
Original file line number Diff line number Diff line change @@ -638,3 +638,10 @@ public function testModifyRequestKeepInstanceOfRequest()
638
638
$ this ->assertTrue ($ r2 instanceof \Psr \Http \Message \ServerRequestInterface);
639
639
}
640
640
}
641
+
642
+ class HasToString
643
+ {
644
+ public function __toString () {
645
+ return 'foo ' ;
646
+ }
647
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments