=')) { /* * Add Zend Framework library/ directory to the PHPUnit code coverage * whitelist. This has the effect that only production code source files * appear in the code coverage report and that all production code source * files, even those that are not covered by a test yet, are processed. */ PHPUnit_Util_Filter::addDirectoryToWhitelist($zfCoreLibrary); /* * Omit from code coverage reports the contents of the tests directory */ foreach (array('.php', '.phtml', '.csv', '.inc') as $suffix) { PHPUnit_Util_Filter::addDirectoryToFilter($zfCoreTests, $suffix); } PHPUnit_Util_Filter::addDirectoryToFilter(PEAR_INSTALL_DIR); PHPUnit_Util_Filter::addDirectoryToFilter(PHP_LIBDIR); } /** * Start output buffering, if enabled */ if (defined('TESTS_ZEND_OB_ENABLED') && constant('TESTS_ZEND_OB_ENABLED')) { ob_start(); } /* * Unset global variables that are no longer needed. */ unset($zfRoot, $zfCoreLibrary, $zfCoreTests, $path);