testMessage() public method

Returns a human readable test message.
public testMessage ( mixed $compare ) : string
$compare mixed Comparison value.
return string Description of success or failure.
示例#1
0
 function testNestedHash()
 {
     $tree = new EqualExpectation(array("a" => 1, "b" => array("c" => 2, "d" => "Three")));
     $this->assertPattern('/member.*?\\[b\\].*?\\[d\\].*?at character 5/', $tree->testMessage(array("a" => 1, "b" => array("c" => 2, "d" => "Threeish"))));
 }