소스 검색

Fix tests

Jordi Boggiano 12 년 전
부모
커밋
5b419c76ca
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      src/Composer/Command/CreateProjectCommand.php
  2. 2 2
      tests/Composer/Test/AllFunctionalTest.php

+ 1 - 0
src/Composer/Command/CreateProjectCommand.php

@@ -12,6 +12,7 @@
 
 namespace Composer\Command;
 
+use Composer\Config;
 use Composer\Factory;
 use Composer\Installer;
 use Composer\Installer\ProjectInstaller;

+ 2 - 2
tests/Composer/Test/FunctionalTest.php → tests/Composer/Test/AllFunctionalTest.php

@@ -23,10 +23,10 @@ class AllFunctionalTest extends \PHPUnit_Framework_TestCase
         $exitcode = $proc->run();
 
         if (isset($testData['EXPECT'])) {
-            $this->assertEquals($testData['EXPECT'], $this->cleanOutput($proc->getOutput()));
+            $this->assertEquals($testData['EXPECT'], $this->cleanOutput($proc->getOutput()), 'Error Output: '.$proc->getErrorOutput());
         }
         if (isset($testData['EXPECT-REGEX'])) {
-            $this->assertRegExp($testData['EXPECT-REGEX'], $this->cleanOutput($proc->getOutput()));
+            $this->assertRegExp($testData['EXPECT-REGEX'], $this->cleanOutput($proc->getOutput()), 'Error Output: '.$proc->getErrorOutput());
         }
         if (isset($testData['EXPECT-ERROR'])) {
             $this->assertEquals($testData['EXPECT-ERROR'], $this->cleanOutput($proc->getErrorOutput()));