我正在接phpunit。我在phpunit.xml文件中。
我想了解每个元素的作用。
<testsuite name="application">
<directory>application</directory>
</testsuite>
Run Code Online (Sandbox Code Playgroud)
该目录是否指向包含所有* Test.php文件的目录?
<filter>
<whitelist>
<directory suffix=".php">../application</directory>
<exclude>
<directory suffix=".php">../library</directory>
<directory suffix=".phtml">../application</directory>
<file>../application/bootstrap.php</file>
<file>../application/scripts/doctrine.php</file>
</exclude>
</whitelist>
</filter>
Run Code Online (Sandbox Code Playgroud)
白名单是指应该涵盖的应用程序文件(不是test.php)?因此,在此示例中,我要覆盖../application中的所有php文件,.. / library中的php文件,.. / application中的phtml文件以及bootstrap.php和doctrine.php?
不确定您在等待什么样的答案,但在这两种情况下,您似乎都是对的。
对于第二点:
欲了解更多信息: