Changeset 735
- Timestamp:
- 06/14/07 14:28:08 (1 year ago)
- Files:
-
- trunk/src/main/php/net/stubbles/reflection/annotations/stubAbstractAnnotation.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/reflection/annotations/stubAnnotation.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/reflection/annotations/stubAnnotationFactory.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/reflection/annotations/stubAnnotationFactoryBuildTestCase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/reflection/annotations/stubAbstractAnnotation.php
r726 r735 53 53 54 54 /** 55 * do some last operations after all values have been set 56 * 57 * This method may check if all required values have been set and throw 58 * an exception if values are missing. 59 * 60 * @throws ReflectionException 61 */ 62 public function finish() 63 { 64 // intentionally empty 65 } 66 67 /** 55 68 * assure that a clone clones all properties of type object as well 56 69 */ trunk/src/main/php/net/stubbles/reflection/annotations/stubAnnotation.php
r720 r735 59 59 60 60 /** 61 * do some last operations after all values have been set 62 * 63 * This method may check if all required values have been set and throw 64 * an exception if values are missing. 65 * 66 * @throws ReflectionException 67 */ 68 public function finish(); 69 70 /** 61 71 * assure that a clone clones all properties of type stubClonable as well 62 72 * trunk/src/main/php/net/stubbles/reflection/annotations/stubAnnotationFactory.php
r564 r735 124 124 } 125 125 } 126 127 $annotation->finish(); 126 128 } 127 129 trunk/src/test/php/net/stubbles/reflection/annotations/stubAnnotationFactoryBuildTestCase.php
r501 r735 11 11 { 12 12 protected $foo; 13 14 protected $finishCalled = false; 15 16 public function finish() 17 { 18 $this->finishCalled = true; 19 } 20 21 public function wasFinishCalled() 22 { 23 return $this->finishCalled; 24 } 13 25 14 26 public function setFoo($foo) … … 57 69 stubAnnotationFactory::build($stubAnnotation, $data); 58 70 $this->assertEqual($stubAnnotation->getFoo(), 'bar'); 71 $this->assertTrue($stubAnnotation->wasFinishCalled()); 59 72 } 60 73
