Skip to content

Commit a470b6c

Browse files
committed
Test more output formats
1 parent 1d7b87d commit a470b6c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tests/Functional/Comment/CommentTest.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function toStringRendersCommentEnclosedInCommentDelimiters(): void
2929
/**
3030
* @test
3131
*/
32-
public function renderWithDefaultOutputFormatRendersCommentEnclosedInCommentDelimiters(): void
32+
public function renderWithVirginOutputFormatRendersCommentEnclosedInCommentDelimiters(): void
3333
{
3434
$comment = 'There is no spoon.';
3535
$subject = new Comment();
@@ -39,6 +39,19 @@ public function renderWithDefaultOutputFormatRendersCommentEnclosedInCommentDeli
3939
self::assertSame('/*' . $comment . '*/', $subject->render(new OutputFormat()));
4040
}
4141

42+
/**
43+
* @test
44+
*/
45+
public function renderWithDefaultOutputFormatRendersCommentEnclosedInCommentDelimiters(): void
46+
{
47+
$comment = 'There is no spoon.';
48+
$subject = new Comment();
49+
50+
$subject->setComment($comment);
51+
52+
self::assertSame('/*' . $comment . '*/', $subject->render(OutputFormat::create()));
53+
}
54+
4255
/**
4356
* @test
4457
*/

0 commit comments

Comments
 (0)