Zend Framework로 PHPUnit을 구성했습니다. 내가 명령을 실행하면PHPunit Zend와의 호환성 문제
phpunit --configuration phpunit.xml
은 내가 assert
기능
$this->assertModule($urlParams['module']);
$this->assertController($urlParams['controller']);
$this->assertAction($urlParams['action']);
$this->assertResponseCode(200);
다음 한
Declaration of Zend_Test_PHPUnit_Constraint_ResponseHeader::evaluate() should be compatible with that of PHPUnit_Framework_Constraint::evaluate()
같은 오류 메시지가 나는 문제를 검색하고 here을 언급처럼 많은 관련 솔루션을 발견 . 내 PHPUnit 버전은 3.7.9
이고 Zend Framework 1은 PHPUnit 3.5.x
에서만 제대로 작동합니다.
그런 다음 here과 같이 PHPUnit
을 다운 그레이드하려고했습니다. un-installation
프로세스가 성공적으로 실행됩니다. 하지만 다운 그레이드 된 버전을 설치로 이동하고 명령 그것은
phing/phing requires package "phpunit/PHP_CodeCoverage" (version >= 1.1.0). phpunit/PHP_CodeCoverage cannot be installed, Conflicts with installed packages.
일부 몸이 어떻게이 상황을 처리하는 말해 오류를 발생
pear install phpunit/PHP_CodeCoverage-1.0.2
을 실행할 때? Zend Framework 1.X
과 호환되는 PHPUnit 버전을 설치하는 방법 또는 PHPUnit을 적절히 다운 그레이드하는 방법 ??
좋습니다.
즉,'vendors/bin' 폴더를 만들고 그 폴더에 phpunit 3.5.x를 설치하겠습니까? –
[composer] (http://getcomposer.org/doc/00-intro.md) – Roberto
어떻게 그 작곡 작곡가를 설치합니까? 위의 디렉토리에'compsor.json' 파일을 만들고 거기에 부여한 코드를 넣을 것인가? –