Changeset 502
- Timestamp:
- 04/13/07 18:34:11 (2 years ago)
- Files:
-
- trunk/src/main/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationDocblockState.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationDocblockStateTestCase.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/reflection/annotations/parser/stubAnnotationStateParserTestCase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationDocblockState.php
r490 r502 33 33 34 34 // all character except * and space and line breaks 35 if (' ' !== $token && '*' !== $token && "\n" !== $token ) {35 if (' ' !== $token && '*' !== $token && "\n" !== $token && "\t" !== $token) { 36 36 $this->parser->changeState(stubAnnotationState::TEXT); 37 37 } trunk/src/test/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationDocblockStateTestCase.php
r454 r502 72 72 $this->docblockState->process(' '); 73 73 $this->docblockState->process("\n"); 74 $this->docblockState->process("\t"); 74 75 } 75 76 } trunk/src/test/php/net/stubbles/reflection/annotations/parser/stubAnnotationStateParserTestCase.php
r491 r502 106 106 $this->assertEqual($annotations['WithTypes']['params']['class']->getName(), 'MyTestClass'); 107 107 } 108 109 /** 110 * test that tabs are recognized correctly 111 */ 112 public function testTabs() 113 { 114 $comment = "/**\n\t * This is a test class that has many annotations.\n\t *\n\t * @Foo\n\t */"; 115 $annotationStateParser = new stubAnnotationStateParser(); 116 $annotations = $annotationStateParser->parse($comment); 117 $this->assertTrue(isset($annotations['Foo'])); 118 } 108 119 } 109 120 ?>
