/**
  * testMagicWakeupSetsSourceFileOnChildMethods
  *
  * @return void
  */
 public function testMagicWakeupSetsSourceFileOnChildMethods()
 {
     $class = new ASTClass(__CLASS__);
     $class->setCache(new MemoryCacheDriver());
     $method = new ASTMethod(__FUNCTION__);
     $class->addMethod($method);
     $class->setContext($this->getMock('PDepend\\Source\\Builder\\BuilderContext'));
     $file = new ASTCompilationUnit(__FILE__);
     $class->setCompilationUnit($file);
     $class->__wakeup();
     $this->assertSame($file, $method->getCompilationUnit());
 }