Returns a human readable test message.
public testMessage ( mixed $compare ) : string | ||
$compare | mixed | Comparison value. |
Результат | string | Description of success or failure. |
function testType() { $string = new NotIdenticalExpectation("37"); $this->assertTrue($string->test("38")); $this->assertTrue($string->test(37)); $this->assertFalse($string->test("37")); $this->assertPattern('/at character 1/', $string->testMessage("38")); $this->assertPattern('/passes.*?type/', $string->testMessage(37)); }