/** * @dataProvider additionProvider */ public function testGetName($class, $path, $exception) { $full_path = str_replace('\\', DS, ROOT_PATH . $path); if ($exception) { $this->assertSame(ClassLoader::getFileName($class), $full_path); //$this->assertFileExists($full_path); } else { $this->assertNotSame(ClassLoader::getFileName($class), $full_path); //$this->assertFileNotExists($full_path); } }