Skip to content

Commit 1b9a542

Browse files
Update tests to PHPUnit 9.5
1 parent 728f3b2 commit 1b9a542

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Extension/DependencyInjection/DependencyInjectionExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ public function testGetType(): void
7575
public function testGetInvalidType(): void
7676
{
7777
$this->expectException(\Klipper\Component\DefaultValue\Exception\InvalidArgumentException::class);
78-
$this->expectExceptionMessageRegExp('/The object default value type "([\\w\\\\]+)" is not registered with the service container./');
78+
$this->expectExceptionMessageMatches('/The object default value type "([\\w\\\\]+)" is not registered with the service container./');
7979

8080
$this->ext->getType(\stdClass::class);
8181
}
8282

8383
public function testGetInvalidClass(): void
8484
{
8585
$this->expectException(\Klipper\Component\DefaultValue\Exception\InvalidArgumentException::class);
86-
$this->expectExceptionMessageRegExp('/The object default value type class name specified for the service "([\\w\\.\\_]+)" does not match the actual class name. Expected "([\\w\\\\]+)", given "([\\w\\\\]+)"/');
86+
$this->expectExceptionMessageMatches('/The object default value type class name specified for the service "([\\w\\.\\_]+)" does not match the actual class name. Expected "([\\w\\\\]+)", given "([\\w\\\\]+)"/');
8787

8888
$this->container->expects(static::once())
8989
->method('get')

0 commit comments

Comments
 (0)