__toString() public method

Returns the string representation of this class.
public __toString ( ) : string
return string
 /**
  * testMagicStringMethodReturnInjectedFileNameValue
  *
  * @return void
  */
 public function testMagicStringMethodReturnInjectedFileNameValue()
 {
     $file = new ASTCompilationUnit(__FILE__);
     $this->assertEquals(__FILE__, $file->__toString());
 }