We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d39b77 commit c99b3ccCopy full SHA for c99b3cc
src/BaseTest.php
@@ -20,7 +20,7 @@ protected function assertNotSameObject($a, $b)
20
21
protected function buildUri($uri)
22
{
23
- if (!defined('URI_FACTORY')) {
+ if (defined('URI_FACTORY')) {
24
$factoryClass = URI_FACTORY;
25
$factory = new $factoryClass();
26
if (!$factory instanceof \Http\Message\UriFactory) {
@@ -47,7 +47,7 @@ protected function buildUri($uri)
47
48
protected function buildStream($data)
49
50
- if (!defined('STREAM_FACTORY')) {
+ if (defined('STREAM_FACTORY')) {
51
$factoryClass = STREAM_FACTORY;
52
53
if (!$factory instanceof \Http\Message\StreamFactory) {
0 commit comments