Dear stackoverflowers, We are developing a web application based on cakephp. CakePHP turns out to be a bit hard to use in a TDD manner and therefore we have are trying to develop the least amount of code possible on the framework it self by extracting all business logic out to classes that do not depend on cakephp. As such, we are able to test our libraries using phpunit with minimal problems. However, we do want to included the untested code in our coverage report more than anything to keep an eye on the amount of glue code between cake and our libraries that we can not test. The problem is then that when telling phpunit to account for these code it goes crazy parsing and executing cakephp's code and it breaks miserably. My question is: Why is phpunit executing this code at all? Is there something we are not understanding or doing wrong here? Here is the phpunit.xml file we are using:
<?xml version="1.0" encoding="utf-8" ?>
<phpunit backupGlobals="true"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader">
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">app</directory>
<exclude>
<directory suffix=".php">tests</directory>
<directory suffix=".php">app/webroot</directory>
<directory suffix=".php">app/plugins</directory>
<directory suffix=".php">app/vendors</directory>
<directory suffix=".php">app/config</directory>
<directory suffix=".php">app/tmp</directory>
<directory suffix=".php">cake</directory>
<directory suffix=".php">vendors</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
Herhangi bir yardım için teşekkür ederiz.