Skip to content

Commit 4576947

Browse files
committed
ups, the scanner test is scanning a php file
1 parent a966909 commit 4576947

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/PHPCR/Tests/Util/CND/Scanner/GenericScannerTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ class GenericScannerTest extends \PHPUnit_Framework_TestCase
1313
{
1414
protected $expectedTokens = array(
1515

16-
// <?php php
16+
// <opening php tag>
1717
array(Token::TK_SYMBOL, '<'),
1818
array(Token::TK_SYMBOL, '?'),
1919
array(Token::TK_IDENTIFIER, 'php'),
2020
array(Token::TK_NEWLINE, ''),
2121
array(Token::TK_NEWLINE, ''),
2222

23-
// namespace Test\Foobar
23+
// namespace Test\Foobar;
2424
array(Token::TK_IDENTIFIER, 'namespace'),
2525
array(Token::TK_WHITESPACE, ''),
2626
array(Token::TK_IDENTIFIER, 'Test'),
@@ -75,6 +75,9 @@ class GenericScannerTest extends \PHPUnit_Framework_TestCase
7575
array(Token::TK_SYMBOL, ';'),
7676
array(Token::TK_NEWLINE, ''),
7777

78+
// empty line before return
79+
array(Token::TK_NEWLINE, ''),
80+
7881
// return "Test string";
7982
array(Token::TK_WHITESPACE, ''),
8083
array(Token::TK_IDENTIFIER, 'return'),

0 commit comments

Comments
 (0)