/** * testMagicWakeupMethodInvokesSetSourceFileOnChildNodes * * @return void * @group pdepend * @group pdepend::code * @group unittest */ public function testMagicWakeupMethodInvokesSetSourceFileOnChildNodes() { $node = $this->getMock(PHP_Depend_Code_Class::CLAZZ, array('setSourceFile'), array(__CLASS__)); $node->expects($this->once())->method('setSourceFile')->with(self::isInstanceOf(PHP_Depend_Code_File::CLAZZ)); $file = new PHP_Depend_Code_File(__FILE__); $file->addChild($node); $file->__wakeup(); }