mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Code formatting in FullTestSuite
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@111133 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
380fc69d6d
commit
1ce7e08933
@ -2,6 +2,7 @@
|
|||||||
@require_once('sapphire/tests/bootstrap.php');
|
@require_once('sapphire/tests/bootstrap.php');
|
||||||
|
|
||||||
class FullTestSuite {
|
class FullTestSuite {
|
||||||
|
|
||||||
public static function get_tests() {
|
public static function get_tests() {
|
||||||
ManifestBuilder::load_test_manifest();
|
ManifestBuilder::load_test_manifest();
|
||||||
$tests = ClassInfo::subclassesFor('SapphireTest');
|
$tests = ClassInfo::subclassesFor('SapphireTest');
|
||||||
@ -17,18 +18,18 @@ class FullTestSuite {
|
|||||||
unset($tests[$class]);
|
unset($tests[$class]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $tests;
|
return $tests;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function suite()
|
public static function suite() {
|
||||||
{
|
$suite = new PHPUnit_Framework_TestSuite();
|
||||||
$suite = new PHPUnit_Framework_TestSuite();
|
|
||||||
$classList = self::get_tests();
|
$classList = self::get_tests();
|
||||||
foreach($classList as $className) {
|
foreach($classList as $className) {
|
||||||
$suite->addTest(new SapphireTestSuite($className));
|
$suite->addTest(new SapphireTestSuite($className));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $suite;
|
return $suite;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user