Sfoglia il codice sorgente

merged branch bdmu/ticket_5341 (PR #5342)

Commits
-------

9beffff [HttpKernel] KernelTest::testGetRootDir fails on Windows for branch 2.0

Discussion
----------

[HttpKernel] fix KernelTest::testGetRootDir fails on Windows for branch 2.0

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #5341
Todo: -
License of the code: MIT
Documentation PR:
replace
$this->assertEquals(DIR, $kernel->getRootDir());
with
$this->assertEquals(DIR, realpath($kernel->getRootDir()));
line 287

---------------------------------------------------------------------------

by pborreli at 2012-08-25T20:23:34Z

:+1:
Fabien Potencier 12 anni fa
parent
commit
71f3081188
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tests/Symfony/Tests/Component/HttpKernel/KernelTest.php

+ 1 - 1
tests/Symfony/Tests/Component/HttpKernel/KernelTest.php

@@ -284,7 +284,7 @@ EOF;
     {
         $kernel = new KernelForTest('test', true);
 
-        $this->assertEquals(__DIR__, $kernel->getRootDir());
+        $this->assertEquals(__DIR__, realpath($kernel->getRootDir()));
     }
 
     public function testGetName()