Skip to content

Commit

Permalink
Update locked dependencies and fix tests impacted by upstream type ch…
Browse files Browse the repository at this point in the history
…anges

Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Jun 13, 2022
1 parent 24a54f7 commit c3d0f02
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
30 changes: 15 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion test/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function testCreateInputWithTypeAsAnUnknownPluginAndNotExistsAsClassNameT
->with($type)
->willReturn(false);

/** @psalm-suppress MixedArgumentTypeCoercion */
$factory = new Factory($pluginManager);

$this->expectException(RuntimeException::class);
Expand All @@ -68,14 +69,16 @@ public function testGetInputFilterManagerSettedByItsSetter(): void
{
$pluginManager = $this->createMock(InputFilterPluginManager::class);
$factory = new Factory();
/** @psalm-suppress MixedArgumentTypeCoercion */
$factory->setInputFilterManager($pluginManager);
$this->assertSame($pluginManager, $factory->getInputFilterManager());
}

public function testGetInputFilterManagerWhenYouConstructFactoryWithIt(): void
{
$pluginManager = $this->createMock(InputFilterPluginManager::class);
$factory = new Factory($pluginManager);
/** @psalm-suppress MixedArgumentTypeCoercion */
$factory = new Factory($pluginManager);
$this->assertSame($pluginManager, $factory->getInputFilterManager());
}

Expand Down
2 changes: 2 additions & 0 deletions test/InputFilterPluginManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function testRegisteringInvalidElementRaisesException(): void
$this->expectExceptionMessage(
'must implement Laminas\InputFilter\InputFilterInterface or Laminas\InputFilter\InputInterface'
);
/** @psalm-suppress InvalidArgument */
$this->manager->setService('test', $this);
}

Expand Down Expand Up @@ -165,6 +166,7 @@ public function serviceProvider(): array

/**
* @dataProvider serviceProvider
* @param InputInterface|InputFilterInterface $service
*/
public function testGet(string $serviceName, object $service): void
{
Expand Down

0 comments on commit c3d0f02

Please sign in to comment.