Specify custom message from mock check in PHPUnit

We can customize the approval message as follows:

$this->assertEquals(true, false, 'should be equal');

I have a mock object:

$mockExecutionContext = $this->getMock('some interface');
$mockExecutionContext->expects($this->once())->method('someMethod');

How to configure the message displayed after confirmation?

+4
source share

Source: https://habr.com/ru/post/1609433/


All Articles