Skip to content

Commit 4511c56

Browse files
committed
remove tests bootstrap file
1 parent 7cee78b commit 4511c56

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

phpunit.xml.dist

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="./tests/bootstrap.php"
2+
<phpunit bootstrap="vendor/autoload.php"
33
colors="true">
44
<testsuites>
55
<testsuite>
@@ -9,9 +9,6 @@
99
<filter>
1010
<whitelist>
1111
<directory suffix=".php">src</directory>
12-
<exclude>
13-
<directory suffix="Interface.php">src/</directory>
14-
</exclude>
1512
</whitelist>
1613
</filter>
1714
</phpunit>

src/Uri.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ public static function isRelativePathReference(UriInterface $uri)
185185
*/
186186
public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null)
187187
{
188-
if ($base) {
189-
$uri = self::resolve($base, $uri);
188+
if ($base !== null) {
189+
$uri = UriResolver::resolve($base, $uri);
190190

191191
return ($uri->getScheme() === $base->getScheme())
192192
&& ($uri->getAuthority() === $base->getAuthority())

tests/FunctionsTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -638,3 +638,10 @@ public function testModifyRequestKeepInstanceOfRequest()
638638
$this->assertTrue($r2 instanceof \Psr\Http\Message\ServerRequestInterface);
639639
}
640640
}
641+
642+
class HasToString
643+
{
644+
public function __toString() {
645+
return 'foo';
646+
}
647+
}

tests/bootstrap.php

-11
This file was deleted.

0 commit comments

Comments
 (0)