diff options
author | Taufan Aditya <toopay@taufanaditya.com> | 2012-03-09 11:00:56 +0100 |
---|---|---|
committer | Taufan Aditya <toopay@taufanaditya.com> | 2012-03-09 11:00:56 +0100 |
commit | a03cbc5d2d2747b48be47c6fdef51f338701c583 (patch) | |
tree | cca16174d0a05a195c4d2f72c328f8e1ccad8755 | |
parent | b3723ff33ebfd4f4e7822516ecb061613f1bc3d5 (diff) |
Add tiyowan suggestion #1147
-rw-r--r-- | phpunit.xml | 13 | ||||
-rw-r--r-- | tests/Bootstrap.php | 10 |
2 files changed, 13 insertions, 10 deletions
diff --git a/phpunit.xml b/phpunit.xml index aca7809cc..2ae7ba3b8 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -22,4 +22,17 @@ </testsuite> </testsuites> + <filters> + <blacklist> + <directory suffix=".php">PEAR_INSTALL_DIR</directory> + <directory suffix=".php">PHP_LIBDIR</directory> + <directory suffix=".php">PROJECT_BASE.'tests'</directory> + <directory suffix=".php">'../system/core/CodeIgniter.php'</directory> + </blacklist> + <whitelist> + <!-- + <directory suffix=".php">'../system/core'</directory> + --> + </whitelist> + </filters> </phpunit>
\ No newline at end of file diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index 28c63f0b2..94dafdce4 100644 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -17,14 +17,4 @@ define('APPPATH', PROJECT_BASE.'application/'); require_once $dir.'/lib/common.php'; require_once $dir.'/lib/ci_testcase.php'; - -// Omit files in the PEAR & PHP Paths from ending up in the coverage report -// PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist(PEAR_INSTALL_DIR); -// PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist(PHP_LIBDIR); -// PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist(PROJECT_BASE.'tests'); - -// Omit Tests from the coverage reports. -// PHP_CodeCoverage_Filter::getInstance()->addDirectoryToWhiteList('../system/core'); -// PHP_CodeCoverage_Filter::getInstance()->addFileToBlackList('../system/core/CodeIgniter.php'); - unset($dir);
\ No newline at end of file |