는 사람이 다음과 같은 문제가 발생했습니다 : 분명히 잘 작동하지만 미리 정의 된 단계가 없습니다 behat :는
\tests> php .\behat\behat.phar -di
의 결과를 FeatureContext.php가 정의 된 단계가없는 경우에도 파일이 비어 있습니다. 내 behat 버전은 2.4.0이며 phar의 도움을 받아 istalled되었습니다. PHP 버전은 5.4.9입니다. 다음은 설치에 대한 세부 정보입니다. 트리 구조는 다음과 같다 : 폴더 behat
tests> dir
Directory: xxx\tests
Mode Name
d---- behat
d---- features
-a--- bootstrap.php
-a--- phpunit.xml
-a--- WebTestCase.php
은 다음 파일이 포함
tests> dir .\behat
Directory: xxx\tests\behat
Mode Name
-a--- behat.phar
-a--- mink.phar
-a--- mink_extension.phar
기능 폴더는 부트 스트랩 디렉토리에만 파일이 포함
tests> dir .\features
Directory: xxx\tests\features
Mode Name
d---- bootstrap
있는 동안
FeatureContext.php 다음 내용으로
고마워요, 당신 말이 맞아요. 요점은 내 behat.yml 파일의 일부 불일치로 인해 밍크 확장자를 볼 수 없도록 만들었습니다. 이제는 적절한 예제로 [link] (https://github.com/Behat/MinkExtension-example)를 복제하고 마침내 작동하게 만들었습니다. – Andrew