Skip to content

Commit

Permalink
Merge branch '7.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 12, 2018
2 parents 4b219da + 637780d commit bdeb99a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit/Framework/MockObject/MockObjectTest.php
Expand Up @@ -660,7 +660,7 @@ public function testVerificationOfMethodNameFailsWithoutParameters(): void
$this->fail('Expected exception');
} catch (ExpectationFailedException $e) {
$this->assertSame(
'Expectation failed for method name is equal to "right" when invoked 1 time(s).' . "\n" .
"Expectation failed for method name is equal to 'right' when invoked 1 time(s).\n" .
'Method was expected to be called 1 times, actually called 0 times.' . "\n",
$e->getMessage()
);
Expand All @@ -685,7 +685,7 @@ public function testVerificationOfMethodNameFailsWithParameters(): void
$this->fail('Expected exception');
} catch (ExpectationFailedException $e) {
$this->assertSame(
'Expectation failed for method name is equal to "right" when invoked 1 time(s).' . "\n" .
"Expectation failed for method name is equal to 'right' when invoked 1 time(s).\n" .
'Method was expected to be called 1 times, actually called 0 times.' . "\n",
$e->getMessage()
);
Expand All @@ -708,7 +708,7 @@ public function testVerificationOfMethodNameFailsWithWrongParameters(): void
$mock->right(['second']);
} catch (ExpectationFailedException $e) {
$this->assertSame(
'Expectation failed for method name is equal to "right" when invoked 1 time(s)' . "\n" .
"Expectation failed for method name is equal to 'right' when invoked 1 time(s)\n" .
'Parameter 0 for invocation SomeClass::right(Array (...)) does not match expected value.' . "\n" .
'Failed asserting that two arrays are equal.',
$e->getMessage()
Expand All @@ -722,7 +722,7 @@ public function testVerificationOfMethodNameFailsWithWrongParameters(): void
// $this->fail('Expected exception');
} catch (ExpectationFailedException $e) {
$this->assertSame(
'Expectation failed for method name is equal to "right" when invoked 1 time(s).' . "\n" .
"Expectation failed for method name is equal to 'right' when invoked 1 time(s).\n" .
'Parameter 0 for invocation SomeClass::right(Array (...)) does not match expected value.' . "\n" .
'Failed asserting that two arrays are equal.' . "\n" .
'--- Expected' . "\n" .
Expand Down Expand Up @@ -801,7 +801,7 @@ public function testWithAnythingInsteadOfWithAnyParameters(): void
$this->fail('Expected exception');
} catch (ExpectationFailedException $e) {
$this->assertSame(
'Expectation failed for method name is equal to "right" when invoked 1 time(s)' . "\n" .
"Expectation failed for method name is equal to 'right' when invoked 1 time(s)\n" .
'Parameter count for invocation SomeClass::right() is too low.' . "\n" .
'To allow 0 or more parameters with any value, omit ->with() or use ->withAnyParameters() instead.',
$e->getMessage()
Expand Down

0 comments on commit bdeb99a

Please sign in to comment.