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

Skip to content

Commit a984bbf

Browse files
committed
minor #2870 Tokens - ensureWhitespaceAtIndex - Clear tokens before compare. (SpacePossum)
This PR was merged into the 2.3 branch. Discussion ---------- Tokens - ensureWhitespaceAtIndex - Clear tokens before compare. replaces #2861 needed for #2851 on 2.3/master Commits ------- acc826c Clear tokens before compare.
2 parents 30e3162 + acc826c commit a984bbf

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)