Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 0886d41

Browse files
committed
Fixes unit test setup for testUsesPrettyPrintFlagOnEnabledDebugMode
MUST have a `ResponseInterface::class` service, but does not need a stream factory.
1 parent e81a8c5 commit 0886d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ProblemDetailsResponseFactoryFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ public function testUsesPrettyPrintFlagOnEnabledDebugMode() : void
9292
$this->container->get('config')->willReturn([
9393
'debug' => true,
9494
]);
95-
$this->container->has(ResponseInterface::class)->willReturn(false);
96-
$this->container->has('Zend\ProblemDetails\StreamFactory')->willReturn(false);
95+
$this->container->get(ResponseInterface::class)->willReturn(function () {
96+
});
9797

9898
$factoryFactory = new ProblemDetailsResponseFactoryFactory();
9999
$factory = $factoryFactory($this->container->reveal());

0 commit comments

Comments
 (0)