내가 behat 테스트를 추가하고 싶습니다 레거시 Symfony 2.0 프로젝트 (정확한 버전 2.0.11)가 있습니다. Symfony 2.0이기 때문에, 작곡가가 아닌 deps
벤더 시스템을 사용합니다. 나는 현재 Symfony 버전을 업그레이드하거나 작곡가로 전환 할 수있는 입장이 아닙니다.deps를 사용하여 symfony 2.0 프로젝트에서 behat를 설치하십시오 - 어떤 버전입니까?
[Mink]
target=/Behat/Mink
git=git://github.com/Behat/Mink.git
version=v1.3.3
[MinkBundle]
target=/Behat/MinkBundle
git=git://github.com/Behat/MinkBundle.git
[BehatBundle]
target=/Behat/BehatBundle
git=git://github.com/Behat/BehatBundle.git
[Gherkin]
target=/Behat/Gherkin
git=git://github.com/Behat/Gherkin.git
version=v2.1.1
[Behat]
target=/Behat/Behat
git=git://github.com/Behat/Behat.git
version=v2.3.5
[Goutte]
target=/Goutte
git=git://github.com/fabpot/Goutte.git
(예, 등등 BehatBundle 오래된 것을 알고 있지만, 나는이 오래된 버전이 난 주어진 필요할 것처럼 보였다 :
나는 다음과 같은 deps 설정을 사용하여 behat 설치하려고 시도 deps 및 sf2.0 사용)내가 vendor/Behat/Behat/bin/behat
를 실행하면, 그때 문제가 here 설명 얻을 :.
PHP Warning: require_once(behat/autoload.php): failed to open stream: No such file or directory in /home/sam/wo-code/PersonaBubble/vendor/Behat/Behat/bin/behat on line 23
PHP Fatal error: require_once(): Failed opening required 'behat/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/sam/wo-code/PersonaBubble/vendor/Behat/Behat/bin/behat on line 23
내가 실현을 behat 2.3.5에는 실제로 autoload.php
파일이 없습니다. Github의 Behat 태그를 살펴본 결과 2.1.3이 (실제로는 autoload.php.dist
) 인 최신 버전이었습니다. 모든 이전 버전의 버전은 이 아니기 때문에 autoload.php.dist
이 아니기 때문에이 경우라고 가정 했으므로).
그러므로 내 행동 버전 번호를 deps
에서 v2.1.3
으로 변경하고 공급 업체를 삭제 한 다음 다시 설치하십시오. behat 명령은 변경했다, 그래서 나는 달렸다 :
PHP Fatal error: Class 'Symfony\Component\Console\Application' not found in /home/sam/wo-code/PersonaBubble/vendor/Behat/Behat/src/Behat/Behat/Console/BehatApplication.php on line 26
사람이 behat 등의 올바른 버전 내가 그것을 작동하게하는 데 사용하는 것이 무엇인지 알고 있나요
:php vendor/Behat/Behat/bin/behat.php
는 지금 this error을 보았다 Symfony 2.0과 deps가 있습니까? 아니면 제가 놓친 다른 단계가 있습니다.
PS 나는 PHAR을 통해 behat를 실행하는 것으로 끝 맺었지만 (이 had other problems은 가치가 없어서 버렸다.) 그러나, 나는 표준 벤더를 설치하는 방법을 알고 싶어한다.