浏览代码

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 年之前
父节点
当前提交
71f3081188
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()