내 상황에 어느 것이 더 적합할지 결정하려고합니다. phpunit docs (매우 제한적 임)에 따르면 허용 목록은 디렉토리 안에있는 모든 파일을 포함해야하지만 그렇게하지 않는 것 같습니다. 누구든지 제안을하거나 phpunit 설명서 이외의 좋은 참조 나를 가리킬 수 있습니다. XML 구성 파일을 사용하고 있습니다. 미리 감사드립니다!phpunit 화이트리스트 대 블랙리스트
<?xml version="1.0" encoding="utf-8"?>
<phpunit>
<filter>
<whitelist>
<directory suffix=".php">/home/ddohr/git/project/</directory>
<exclude>
<directory suffix=".php">/home/ddohr/git/project/vendor/</directory>
<directory suffix=".php">/home/ddohr/git/project/plugins/</directory>
<directory suffix=".php">/home/ddohr/git/project/test/</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
그것은 나를 위해 그런 식으로 작동합니다 : [지금 사용하고 XML 파일 (https://github.com/ircmaxell/PHP-CryptLib/blob/master 그런 이유로 나는이 작은 보석을 추가 /test/phpunit.xml.dist) – ircmaxell
허용 목록에있는 파일이나 디렉토리를 제외하면 어떤 파일에 "접근"해도 파일이 계속 들어올 것입니다. 자동으로 모든 파일을 가져 오지 않을까요? 내 화이트리스트 디렉토리에있는 파일들이 많아서 뽑아 내지 못하는 것 같습니다. – Dave
@dave : PHPUnit 루트 태그는 어디에 있습니까? 검시 태그는 어 딨지? 질문을 편집하여 전체 XML 파일을 게시하십시오 ... – ircmaxell