public function testGetRootDir()
 {
     $kernel = new KernelForTest('test', true);
     $this->assertEquals(__DIR__ . '/Fixtures', $kernel->getRootDir());
 }
Exemple #2
0
 public function testGetRootDir()
 {
     $kernel = new KernelForTest('test', true);
     $this->assertEquals(__DIR__ . DIRECTORY_SEPARATOR . 'Fixtures', realpath($kernel->getRootDir()));
 }
Exemple #3
0
 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());
 }