Skip to content

Commit

Permalink
Merge pull request #62 from Ocramius/fix/adjust-test-double-to-return…
Browse files Browse the repository at this point in the history
…-boolean

Adjusted tests so that stubbed `ContainerInterface#has()` returns `bool` instead of `null`
  • Loading branch information
Ocramius committed Jul 20, 2022
2 parents 8c663d3 + e9c3c54 commit 9b0c514
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/InputFilterPluginManagerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class InputFilterPluginManagerFactoryTest extends TestCase

public function testFactoryReturnsPluginManager(): void
{
$container = $this->prophesize(ContainerInterface::class)->reveal();
$container = $this->createMock(ContainerInterface::class);
$factory = new InputFilterPluginManagerFactory();

$filters = $factory($container, InputFilterPluginManagerFactory::class);
Expand Down Expand Up @@ -46,8 +46,8 @@ public function pluginProvider(): array
*/
public function testFactoryConfiguresPluginManagerUnderContainerInterop(string $pluginType): void
{
$container = $this->prophesize(ContainerInterface::class)->reveal();
$plugin = $this->prophesize($pluginType)->reveal();
$container = $this->createMock(ContainerInterface::class);
$plugin = $this->createMock($pluginType);

$factory = new InputFilterPluginManagerFactory();
$filters = $factory($container, InputFilterPluginManagerFactory::class, [
Expand All @@ -60,7 +60,7 @@ public function testFactoryConfiguresPluginManagerUnderContainerInterop(string $

public function testConfiguresInputFilterServicesWhenFound(): void
{
$inputFilter = $this->prophesize(InputFilterInterface::class)->reveal();
$inputFilter = $this->createMock(InputFilterInterface::class);
$config = [
'input_filters' => [
'aliases' => [
Expand Down

0 comments on commit 9b0c514

Please sign in to comment.