Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function ini_get(\$key)
public function testCreateWithNotSupportedScheme()
{
$this->expectException(UnsupportedSchemeException::class);
$this->expectExceptionMessageRegExp('#The ".*" scheme is not supported#');
$this->expectErrorMessageMatches('#The ".*" scheme is not supported#');

$sut = new NativeTransportFactory();
$sut->create(Dsn::fromString('sendmail://default'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function testSendWithEmptyArrayResponseThrows(): void
public function testSendWithErrorResponseThrows(): void
{
$this->expectException(TransportException::class);
$this->expectExceptionMessageRegExp('/testErrorCode/');
$this->expectExceptionMessageMatches('/testErrorCode/');

$response = $this->createMock(ResponseInterface::class);
$response->expects($this->exactly(2))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testItImplementsClassMetadataFactoryInterface()
public function testItThrowAnExceptionWhenCacheFileIsNotFound()
{
$this->expectException(\RuntimeException::class);
$this->expectExceptionMessageRegExp('#File ".*/Fixtures/not-found-serializer.class.metadata.php" could not be found.#');
$this->expectExceptionMessageMatches('#File ".*/Fixtures/not-found-serializer.class.metadata.php" could not be found.#');

$classMetadataFactory = $this->createMock(ClassMetadataFactoryInterface::class);
new CompiledClassMetadataFactory(__DIR__.'/../../Fixtures/not-found-serializer.class.metadata.php', $classMetadataFactory);
Expand Down