#1331: Support PHPUnit 3.5 and drop compatibility with PHPUnit 3.4
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed
Priority: normal | Milestone: 1.0.5
Component: testing | Version: 1.0.5RC1
Severity: normal | Resolution: fixed
Keywords: | Has_patch: 1
---------------------+------------------------------------------------------
Comment(by david):
No BC impact for tests, but {{{run-tests.php}}} will need changes similar
to this one in the Sample App:
{{{
#!diff
Index: branches/1.0/samples/test/run-tests.php
===================================================================
--- a/branches/1.0/samples/test/run-tests.php
+++ b/branches/1.0/samples/test/run-tests.php
@@ -8,16 +8,16 @@
if(isset($arguments['environment'])) {
$env = $arguments['environment'];
unset($arguments['environment']);
} else {
$env = 'testing';
}
AgaviTesting::bootstrap($env);
-PHPUnit_Util_Filter::addDirectoryToFilter(AgaviConfig::get('core.cache_dir'));
-PHPUnit_Util_Filter::addDirectoryToFilter(AgaviConfig::get('core.agavi_dir'));
+PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist(AgaviConfig::get('core.agavi_dir'));
+PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist(AgaviConfig::get('core.cache_dir'));
AgaviTesting::dispatch($arguments);
?>
}}}
--
Ticket URL: <http://trac.agavi.org/ticket/1331#comment:7>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets