Skip to content

Commit f287b39

Browse files
committed
test: cover __toString
1 parent 805512b commit f287b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/HighlighterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function testHighlightCode()
1919

2020
public function testHighlightFile()
2121
{
22-
$code = Highlighter::for(__DIR__ . '/../example.php')->highlight();
22+
$code = (string) Highlighter::for(__DIR__ . '/../example.php');
2323

2424
$this->assertSame(\file_get_contents(__DIR__ . '/example.phps'), $code);
2525
}

0 commit comments

Comments
 (0)