Skip to content

Commit

Permalink
prove that test case is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Dec 14, 2021
1 parent a259150 commit d865593
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/Tokenizer/TokensTest.php
Expand Up @@ -1387,8 +1387,7 @@ public function testInsertSlicesAtMultiplePlaces(string $expected, array $slices
16 => $slices,
6 => $slices,
]);

static::assertSame($expected, $tokens->generateCode());
static::assertTokens(Tokens::fromCode($expected), $tokens);
}

public function provideInsertSlicesAtMultiplePlacesCases(): \Generator
Expand All @@ -1397,11 +1396,11 @@ public function provideInsertSlicesAtMultiplePlacesCases(): \Generator
<<<'EOF'
<?php
$after = get_class($after);
$before = get_class($before);
$after = get_class($after);
$before = get_class($before);
EOF
,
[new Token([T_WHITESPACE, ' '])],
[new Token([T_WHITESPACE, ' '])],
];

yield 'two slice count' => [
Expand Down

0 comments on commit d865593

Please sign in to comment.