public function testGetRootDir() { $kernel = new KernelForTest('test', true); $this->assertEquals(__DIR__ . '/Fixtures', $kernel->getRootDir()); }
public function testGetRootDir() { $kernel = new KernelForTest('test', true); $this->assertEquals(__DIR__ . DIRECTORY_SEPARATOR . 'Fixtures', realpath($kernel->getRootDir())); }
public function testGetRootDir() { $kernel = new KernelForTest('test', true); $rootDir = __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures'; // getRootDir() returns path with slashes // without conversion test fails on Windows if (defined('PHP_WINDOWS_VERSION_MAJOR')) { $rootDir = strtr($rootDir, '\\', '/'); } $this->assertEquals($rootDir, $kernel->getRootDir()); }