File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,14 @@ public function testInterpretingASimpleDocBlock(): void
7979 $ this ->assertInstanceOf (DocBlock::class, $ docblock );
8080 $ this ->assertSame ('This is an example of a summary. ' , $ summary );
8181 $ this ->assertInstanceOf (Description::class, $ description );
82- $ this ->assertSame ($ descriptionText , $ description ->render ());
82+ $ this ->assertSame (
83+ str_replace (
84+ PHP_EOL ,
85+ "\n" ,
86+ $ descriptionText
87+ ),
88+ $ description ->render ()
89+ );
8390 $ this ->assertEmpty ($ docblock ->getTags ());
8491 }
8592
Original file line number Diff line number Diff line change @@ -175,14 +175,9 @@ public function testDescriptionsRetainFormatting(): void
175175 */
176176 public function testTagsAreInterpretedUsingFactory (): void
177177 {
178- $ tagString = <<<TAG
179- @author Mike van Riel <me@mikevanriel.com> This is with
180- multiline description.
181- TAG ;
182-
183178 $ tag = m::mock (Tag::class);
184179 $ tagFactory = m::mock (TagFactory::class);
185- $ tagFactory ->shouldReceive ('create ' )->with ($ tagString , m::type (Context::class))->andReturn ($ tag );
180+ $ tagFactory ->shouldReceive ('create ' )->with (m:: any () , m::type (Context::class))->andReturn ($ tag );
186181
187182 $ fixture = new DocBlockFactory (new DescriptionFactory ($ tagFactory ), $ tagFactory );
188183
You can’t perform that action at this time.
0 commit comments