Beispiel #1
0
 /**
  * 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;
 }
Beispiel #2
0
 /**
  * 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());
 }