/** * @test * @author Karsten Dambekalns <*****@*****.**> */ public function specialClassNamesAndPathsSettingsOverrideClassLoaderBehaviour() { $root = \vfsStream::newDirectory('Packages/Virtual/Resources/PHP'); \vfsStreamWrapper::setRoot($root); $vfsClassFile = \vfsStream::newFile('Bar.php')->withContent('<?php ?>')->at($root->getChild('Virtual/Resources/PHP')); $this->classLoader->setSpecialClassNameAndPath('Baz', \vfsStream::url('Virtual/Resources/PHP/Bar.php')); $this->classLoader->loadClass('Baz'); $this->assertTrue($vfsClassFile->eof()); }