toThrowableString() public static method

Return Exception throwable trace in string format.
public static toThrowableString ( Error | Exception $ex ) : string
$ex Error | Exception
return string
Example #1
0
 /**
  *
  */
 public function testStaticApiToThrowableString_ReturnsThrowableTraceAsString()
 {
     $prev = $this->createException('Previous');
     $ex = $this->createException('Exception', $prev);
     $this->assertThrowableString(Exception::toThrowableString($ex));
 }