Просмотр исходного кода

Removed assumption that phpunit.xml is relative

Daniel Holmes 14 лет назад
Родитель
Сommit
fd98c8f0f2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php

+ 2 - 2
src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php

@@ -63,9 +63,9 @@ abstract class WebTestCase extends BaseWebTestCase
         // find the --configuration flag from PHPUnit
         $cli = implode(' ', $_SERVER['argv']);
         if (preg_match('/\-\-configuration[= ]+([^ ]+)/', $cli, $matches)) {
-            $dir = $dir.'/'.$matches[1];
+            $dir = realpath($matches[1]);
         } elseif (preg_match('/\-c +([^ ]+)/', $cli, $matches)) {
-            $dir = $dir.'/'.$matches[1];
+            $dir = realpath($matches[1]);
         } elseif (file_exists(getcwd().'/phpunit.xml') || file_exists(getcwd().'/phpunit.xml.dist')) {
             $dir = getcwd();
         } else {