标签: php mocking phpunit assertion
我们可以自定义断言的消息:
$this->assertEquals(true, false, 'should be equal');
我有一个模拟对象:
$mockExecutionContext = $this->getMock('some interface'); $mockExecutionContext->expects($this->once())->method('someMethod');
如何验证验证时显示的消息?