在PHPUnit中通过模拟验证指定自定义消息

时间:2015-09-29 08:32:47

标签: php mocking phpunit assertion

我们可以自定义断言的消息:

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

我有一个模拟对象:

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

如何验证验证时显示的消息?

0 个答案:

没有答案