Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit acc826c

Browse files
committed
Clear tokens before compare.
1 parent 30e3162 commit acc826c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Tokenizer/TokensTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ public function testEnsureWhitespaceAtIndex($expected, $input, $index, $offset,
895895
{
896896
$tokens = Tokens::fromCode($input);
897897
$tokens->ensureWhitespaceAtIndex($index, $offset, $whiteSpace);
898-
898+
$tokens->clearEmptyTokens();
899899
$this->assertTokens(Tokens::fromCode($expected), $tokens);
900900
}
901901

0 commit comments

Comments
 (0)