Skip to content

Commit 6c1c3e1

Browse files
Initial work on a test case that reproduces #13
1 parent 648594c commit 6c1c3e1

3 files changed

+9
-0
lines changed

tests/TokenizerTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ public function testValidSourceGetsParsed(): void {
1111
$this->assertParsedTokensMatchFixture('test.php');
1212
}
1313

14+
/**
15+
* @ticket https://github.com/theseer/tokenizer/issues/13
16+
*/
17+
public function testFileWithSingleEmptyLineGetsParsed(): void {
18+
$this->assertParsedTokensMatchFixture('source_with_single_empty_line.php');
19+
}
20+
1421
private function assertParsedTokensMatchFixture(string $fixture): void
1522
{
1623
$expected = \unserialize(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
Binary file not shown.

0 commit comments

Comments
 (0)