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