parse(file_get_contents(__DIR__ . '/_files/test.php')); $expected = unserialize( file_get_contents(__DIR__ . '/_files/test.php.tokens'), [TokenCollection::class] ); $this->assertEquals($expected, $result); } }