Mercurial > hg > cmmr2012-drupal-site
view vendor/theseer/tokenizer/tests/TokenizerTest.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | 5311817fb629 |
children |
line wrap: on
line source
<?php declare(strict_types = 1); namespace TheSeer\Tokenizer; use PHPUnit\Framework\TestCase; /** * @covers \TheSeer\Tokenizer\Tokenizer */ class TokenizerTest extends TestCase { public function testValidSourceGetsParsed() { $tokenizer = new Tokenizer(); $result = $tokenizer->parse(file_get_contents(__DIR__ . '/_files/test.php')); $expected = unserialize( file_get_contents(__DIR__ . '/_files/test.php.tokens'), [TokenCollection::class] ); $this->assertEquals($expected, $result); } }