PHPUnit_Framework_AssertionFailedError::toString PHP Method

toString() public method

Wrapper for getMessage() which is declared as final.
public toString ( ) : string
return string
    public function toString()
    {
        return $this->getMessage();
    }

Usage Example

 /**
  * Paints a failing test.
  *
  * @param PHPUnit_Framework_AssertionFailedError $message Failure object displayed in
  *   the context of the other tests.
  * @return void
  */
 public function paintFail($message)
 {
     $context = $message->getTrace();
     $realContext = $context[3];
     $context = $context[2];
     printf("FAIL on line %s\n%s in\n%s %s()\n\n", $context['line'], $message->toString(), $context['file'], $realContext['function']);
 }
All Usage Examples Of PHPUnit_Framework_AssertionFailedError::toString
PHPUnit_Framework_AssertionFailedError