Skip to content

Commit

Permalink
#6136 Removed regex assertion - constant assertion is sufficient
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Nov 18, 2016
1 parent e37041a commit d2643ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/ORM/EntityManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function transactionalCallback($em)
public function testCreateInvalidConnection()
{
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessageRegExp('/^Invalid \$connection argument of type integer given: \"1\".$/');
$this->expectExceptionMessage('Invalid $connection argument of type integer given: "1".');

$config = new Configuration();
$config->setMetadataDriverImpl($this->createMock(MappingDriver::class));
Expand Down

0 comments on commit d2643ee

Please sign in to comment.