__sleep() public method

The magic sleep method will be called by PHP's runtime environment right before it serializes an instance of this class. This method returns an array with those property names that should be serialized.
Since: 0.10.0
public __sleep ( ) : array(string)
return array(string)
 /**
  * testMagicSleepMethodReturnsExpectedSetOfPropertyNames
  * 
  * @return void
  */
 public function testMagicSleepMethodReturnsExpectedSetOfPropertyNames()
 {
     $file = new ASTCompilationUnit(__FILE__);
     $this->assertEquals(array('cache', 'childNodes', 'docComment', 'endLine', 'fileName', 'startLine', 'id'), $file->__sleep());
 }