Changeset 1069

Show
Ignore:
Timestamp:
11/27/07 00:19:14 (1 year ago)
Author:
mikey
Message:

fixed test sequence, was never executed before

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/test/php/net/stubbles/reflection/annotations/stubAnnotationFactoryTestCase.php

    r834 r1069  
    181181        $this->assertFalse($castedAnnotation->value); 
    182182 
     183        $myAnnotation = stubAnnotationFactory::create($this->commentWithClass, 'MyAnnotation', stubAnnotation::TARGET_CLASS, 'AnotherClass', __FILE__); 
     184        $this->assertIsA($myAnnotation, 'MyAnnotation'); 
     185        $this->assertIsA($myAnnotation->foo, 'stubReflectionClass'); 
     186         
    183187        $this->expectException('ReflectionException'); 
    184188        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'); 
    189189    } 
    190190