public function testIgnoredAnnotationsAreNotUsed()
 {
     Addendum::ignore('FirstAnnotation', 'SecondAnnotation');
     $reflection = new ReflectionAnnotatedClass('Example');
     $this->assertFalse($reflection->hasAnnotation('FirstAnnotation'));
     $this->assertFalse($reflection->hasAnnotation('SecondAnnotation'));
 }
Example #2
0
 /**
  * @expectedException PHPUnit_Framework_Error
  */
 public function testClassResolverShouldTriggerErrorOnCommonSuffix()
 {
     //     $this->expectOutputString("Cannot resolve class name for 'CommonSuffix'. Possible matches: Namespace1_CommonSuffix, Namespace2_CommonSuffix");
     Addendum::resolveClassName('CommonSuffix');
 }
Example #3
0
 protected function getDocComment($reflection)
 {
     return Addendum::getDocComment($reflection);
 }