This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed
Scanner/TestAsset/MapperExample Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -144,14 +144,14 @@ public function testToString()
144144
145145 $ classDocBlock = $ classReflection ->getDocBlock ();
146146
147- $ expectedString = 'DocBlock [ /* DocBlock */ ] { ' . PHP_EOL
148- . PHP_EOL
149- . ' - Tags [3] { ' . PHP_EOL
150- . ' DocBlock Tag [ * @author ] ' . PHP_EOL
151- . ' DocBlock Tag [ * @method ] ' . PHP_EOL
152- . ' DocBlock Tag [ * @property ] ' . PHP_EOL
153- . ' } ' . PHP_EOL
154- . '} ' . PHP_EOL ;
147+ $ expectedString = 'DocBlock [ /* DocBlock */ ] { ' . "\n"
148+ . "\n"
149+ . ' - Tags [3] { ' . "\n"
150+ . ' DocBlock Tag [ * @author ] ' . "\n"
151+ . ' DocBlock Tag [ * @method ] ' . "\n"
152+ . ' DocBlock Tag [ * @property ] ' . "\n"
153+ . ' } ' . "\n"
154+ . '} ' . "\n" ;
155155
156156 $ this ->assertEquals ($ expectedString , (string ) $ classDocBlock );
157157 }
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function testToString()
5050
5151 $ tag = $ classReflection ->getMethod ('doSomething ' )->getDocBlock ()->getTag ('descriptionTag ' );
5252
53- $ expectedString = 'DocBlock Tag [ * @descriptionTag ] ' . PHP_EOL ;
53+ $ expectedString = 'DocBlock Tag [ * @descriptionTag ] ' . "\n" ;
5454
5555 $ this ->assertEquals ($ expectedString , (string ) $ tag );
5656 }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function setDbAdapter(DbAdapter $dbAdapter)
2525
2626 public function __toString ()
2727 {
28- return 'I am a ' . get_class ($ this ) . ' object (hash ' . spl_object_hash ($ this ) . '), using this dbAdapter ' . PHP_EOL . ' ' . $ this ->dbAdapter ;
28+ return 'I am a ' . get_class ($ this ) . ' object (hash ' . spl_object_hash ($ this ) . '), using this dbAdapter ' . "\n" . ' ' . $ this ->dbAdapter ;
2929 }
3030
3131}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public function find(/* $entityCriterion */)
3737
3838 public function __toString ()
3939 {
40- return 'I am a ' . get_class ($ this ) . ' object (hash ' . spl_object_hash ($ this ) . '), using this mapper object ' . PHP_EOL . ' ' . $ this ->mapper ;
40+ return 'I am a ' . get_class ($ this ) . ' object (hash ' . spl_object_hash ($ this ) . '), using this mapper object ' . "\n" . ' ' . $ this ->mapper ;
4141 }
4242
4343}
You can’t perform that action at this time.
0 commit comments