Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martinssipenko committed May 14, 2020
1 parent 7a4ebeb commit 969980f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Mockery/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ public function testCantCallMethodWhenUsingBlacklistAndNoExpectation()
{
$m = mock('MockeryTest_PartialNormalClass2[!foo]');
$this->expectException(BadMethodCallException::class);
$this->expectExceptionMessageRegExp('/::bar\(\), but no expectations were specified/');
$this->expectExceptionMessageRegEx('/::bar\(\), but no expectations were specified/');
$m->bar();
}

Expand Down Expand Up @@ -801,7 +801,7 @@ public function testInstantiationOfInstanceMockWithConstructorParameterValidatio
->andThrow(new \Exception('instanceMock ' . rand(100, 999)));

$this->expectException(\Exception::class);
$this->expectExceptionMessageRegExp('/^instanceMock \d{3}$/');
$this->expectExceptionMessageRegEx('/^instanceMock \d{3}$/');
new MyNamespace\MyClass16();
}

Expand Down

0 comments on commit 969980f

Please sign in to comment.