* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Symfony\CS\Tests\Tokenizer\Transformer; use Symfony\CS\Tests\Tokenizer\AbstractTransformerTestBase; use Symfony\CS\Tokenizer\Tokens; /** * @author Dariusz RumiƄski */ class DollarCloseCurlyBracesTest extends AbstractTransformerTestBase { /** * @dataProvider provideProcessCases */ public function testProcess($source, array $expectedTokens) { $tokens = Tokens::fromCode($source); foreach ($expectedTokens as $index => $name) { $this->assertSame(constant($name), $tokens[$index]->getId()); $this->assertSame($name, $tokens[$index]->getName()); } } public function provideProcessCases() { return array( array( ' 'T_DOLLAR_OPEN_CURLY_BRACES', 7 => 'CT_DOLLAR_CLOSE_CURLY_BRACES', ), ), ); } }