Exemple #1
0
 /**
  * Get import statements and aliases from the class containing this method
  * 
  * @return array
  */
 protected function getUses()
 {
     if (null !== $this->uses) {
         return $this->uses;
     }
     $rClass = $this->reflection->getDeclaringClass();
     $rFile = $rClass->getDeclaringFile();
     $this->uses = $rFile->getUses();
     return $this->uses;
 }
 public function testDeclaringClassReturn()
 {
     $method = new Reflection\ReflectionMethod('ZendTest\\Reflection\\TestAsset\\TestSampleClass2', 'getProp1');
     $this->assertEquals(get_class($method->getDeclaringClass()), 'Zend\\Reflection\\ReflectionClass');
 }