mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 47699 via svnmerge from
svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/events ........ r47699 | sminnee | 2008-01-08 12:11:28 +1300 (Tue, 08 Jan 2008) | 1 line Fixed TestRunner ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@47709 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7848fb9c9b
commit
5606e9278b
@ -20,8 +20,6 @@ class TestRunner extends Controller {
|
||||
* Run all test classes
|
||||
*/
|
||||
function index() {
|
||||
ManifestBuilder::includeEverything();
|
||||
|
||||
$tests = ClassInfo::subclassesFor('SapphireTest');
|
||||
array_shift($tests);
|
||||
|
||||
@ -49,6 +47,8 @@ class TestRunner extends Controller {
|
||||
echo "<pre>";
|
||||
$suite = new PHPUnit_Framework_TestSuite();
|
||||
foreach($classList as $className) {
|
||||
// Ensure that the autoloader pulls in the test class, as PHPUnit won't know how to do this.
|
||||
class_exists($className);
|
||||
$suite->addTest(new PHPUnit_Framework_TestSuite($className));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user