Changeset 1069
- Timestamp:
- 11/27/07 00:19:14 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/test/php/net/stubbles/reflection/annotations/stubAnnotationFactoryTestCase.php
r834 r1069 181 181 $this->assertFalse($castedAnnotation->value); 182 182 183 $myAnnotation = stubAnnotationFactory::create($this->commentWithClass, 'MyAnnotation', stubAnnotation::TARGET_CLASS, 'AnotherClass', __FILE__); 184 $this->assertIsA($myAnnotation, 'MyAnnotation'); 185 $this->assertIsA($myAnnotation->foo, 'stubReflectionClass'); 186 183 187 $this->expectException('ReflectionException'); 184 188 stubAnnotationFactory::create($this->commentComplex, 'NonExisting', stubAnnotation::TARGET_CLASS, 'MyClass', __FILE__); 185 186 $myAnnotation = stubAnnotationFactory::create($this->commentCommentWithClass, 'MyAnnotation', stubAnnotation::TARGET_CLASS, 'MyClass', __FILE__);187 $this->assertIsA($myAnnotation, 'MyAnnotation');188 $this->assertIsA($myAnnotation->foo, 'stubReflectionClass');189 189 } 190 190
