Changeset 1712
- Timestamp:
- 07/16/08 17:23:44 (2 months ago)
- Files:
-
- framework/trunk/src/main/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationNameState.php (modified) (1 diff)
- framework/trunk/src/main/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationParamsState.php (modified) (1 diff)
- framework/trunk/src/test/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationNameStateTestCase.php (modified) (1 diff)
- framework/trunk/src/test/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationParamsStateTestCase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
framework/trunk/src/main/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationNameState.php
r1227 r1712 65 65 } 66 66 67 if ("\n" === $token ) {67 if ("\n" === $token || "\r" === $token) { 68 68 if (strlen($this->name) > 0) { 69 69 $this->checkName(); framework/trunk/src/main/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationParamsState.php
r1227 r1712 24 24 * @var array<string> 25 25 */ 26 protected $doNothingTokens = array(',', ' ', "\ n", "\t", '*');26 protected $doNothingTokens = array(',', ' ', "\r", "\n", "\t", '*'); 27 27 28 28 /** framework/trunk/src/test/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationNameStateTestCase.php
r1703 r1712 93 93 94 94 /** 95 * test processing a carriage return 96 * 97 * @test 98 */ 99 public function processCarriageReturn() 100 { 101 $this->mockAnnotationParser->expects($this->once()) 102 ->method('registerAnnotation') 103 ->with($this->equalTo('a')); 104 $this->mockAnnotationParser->expects($this->exactly(2)) 105 ->method('changeState') 106 ->with($this->equalTo(stubAnnotationState::DOCBLOCK)); 107 108 $this->annotationNameState->process("\r"); 109 $this->annotationNameState->process('a'); 110 $this->annotationNameState->process("\r"); 111 } 112 113 /** 95 114 * test processing an argument parenthesis 96 115 * framework/trunk/src/test/php/net/stubbles/reflection/annotations/parser/state/stubAnnotationParamsStateTestCase.php
r1703 r1712 63 63 $this->paramsState->process(','); 64 64 $this->paramsState->process(' '); 65 $this->paramsState->process("\r"); 65 66 $this->paramsState->process("\n"); 66 67 $this->paramsState->process("\t");
