/** * @dataProvider getFixNamespaceDeclarationsDataWithoutTokenizer */ public function testFixNamespaceDeclarationsWithoutTokenizer($source, $expected) { ClassCollectionLoader::enableTokenizer(false); $this->assertEquals('<?php ' . $expected, ClassCollectionLoader::fixNamespaceDeclarations('<?php ' . $source)); ClassCollectionLoader::enableTokenizer(true); }