Returns a human readable test message.
public testMessage ( mixed $compare ) : string | ||
$compare | mixed | Comparison value. |
Результат | string | Description of success or failure. |
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")))); }