Skip to content

Commit 4ce850f

Browse files
author
Bauffman
committed
Adds test for comment lexing.
1 parent 156101d commit 4ce850f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Tests/LexerTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,15 @@ public function testBlock()
208208
);
209209
$this->assertEquals($expected, $this->lexer->tokenize($source));
210210
}
211+
212+
public function testComment()
213+
{
214+
$source = '{* This is a comment *}';
215+
$expected = new TokenStream(
216+
array(
217+
new Token(Token::EOF, null, 1)
218+
)
219+
);
220+
$this->assertEquals($expected, $this->lexer->tokenize($source));
221+
}
211222
}

0 commit comments

Comments
 (0)