Esempio n. 1
0
 /**
  * @return string
  */
 protected function parseDeprecationNote()
 {
     if ($this->classReflection->isTaggedWith('deprecated')) {
         return implode(', ', $this->classReflection->getTagValues('deprecated'));
     } else {
         return '';
     }
 }
 /**
  * @test
  */
 public function proxyClassesStillContainAnnotationsFromItsOriginalClass()
 {
     $class = new ClassReflection(\TYPO3\Flow\Tests\Functional\Object\Fixtures\PrototypeClassA::class);
     $method = $class->getMethod('setSomeProperty');
     $this->assertTrue($class->implementsInterface(\TYPO3\Flow\Object\Proxy\ProxyInterface::class));
     $this->assertTrue($class->isTaggedWith('scope'));
     $this->assertTrue($method->isTaggedWith('session'));
 }