Reputation: 6273
I am picking up phpunit. I am at the phpunit.xml file.
I want to understand what does each element do.
<testsuite name="application">
<directory>application</directory>
</testsuite>
Does the directory refers to the dir containing all the *Test.php files?
<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>
The whitelist refers to the application files (not test.php) that are supposed to be covered? So in this example, I am saying I want all php files in ../application to be covered, except php files in ../library, phtml files in ../application, and the bootstrap.php and doctrine.php?
Upvotes: 5
Views: 9894
Reputation: 401002
Not sure what kind of answer you're waiting for, but you seem to be right, in both cases.
For the second point :
For more informations :
Upvotes: 4