/** * Creates an abstract item instance. * * @return PHP_Depend_Code_AbstractItem */ protected function createItem() { $method = new PHP_Depend_Code_Method('method'); $method->setSourceFile(new PHP_Depend_Code_File(__FILE__)); return $method; }
/** * Tests that build interface updates the source file information for null * values. * * @return void */ public function testSetSourceFileInformationForNullValue() { $method = new PHP_Depend_Code_Method('method'); $file = new PHP_Depend_Code_File(__FILE__); $method->setSourceFile($file); $this->assertSame($file, $method->getSourceFile()); }