2
phpunit을 내 우분투 11.10 설치에서 작동 시키려고합니다. here을 제안 나는, PEAR를 사용 phpunit을 설치 한 후, 나는 아주 작은 테스트 클래스 준비 : 내가 명령 줄을 통해 실행 phpunit을 이것을 실행하면 나는 아무것도 얻을,phpunit이 작동하지 않습니다
error_reporting(E_ALL & ~E_DEPRECATED);
set_include_path(get_include_path().':/usr/share/php');
require_once 'PHPUnit/Autoload.php';
require_once 'PHPUnit/Extensions/OutputTestCase.php';
class ExampleTest extends PHPUnit_Framework_TestCase
{
public function testOne()
{
$this->assertTrue(FALSE);
}
}
// $suite = new PHPUnit_Framework_TestSuite('ExampleTest');
// PHPUnit_TextUI_TestRunner::run($suite);
합니다. 나는 마지막 두 줄의 주석과 PHP를 실행하여 파일을 실행하면 , 나는 적절한 출력을 얻을 (그것이 사실 주장하지 못했습니다. 등)
더 나아가, 내가 phpunit을 --version을하려고 할 때, I 여전히 아무것도 얻지 못한다!
어떤 아이디어 ??
+1 알아 내기 위해 – Gordon