CRM_Core_ClassLoader::singleton()->register();
}
- /**
- * Test suite setup.
- */
- protected function setUp() {
- //print __METHOD__ . "\n";
- }
-
- /**
- * Test suite teardown.
- */
- protected function tearDown() {
- //print __METHOD__ . "\n";
- }
-
/**
* suppress failed test error issued by phpunit when it finds.
* a test suite with no tests
// Pass 1: Check all *Tests.php files
// array(callable)
- $addTests = array();
+ $addTests = [];
//echo "start Pass 1 on {$dirInfo->getRealPath()}\n";
$dir = new DirectoryIterator($dirInfo->getRealPath());
foreach ($dir as $fileInfo) {
// Pass 2: Scan all subdirectories
// array(array(0 => $suite, 1 => $file, 2 => SplFileinfo))
- $addAllTests = array();
+ $addAllTests = [];
$dir = new DirectoryIterator($dirInfo->getRealPath());
//echo "start Pass 2 on {$dirInfo->getRealPath()}\n";
foreach ($dir as $fileInfo) {
// Pass 3: Check all *Test.php files in this directory
//echo "start Pass 3 on {$dirInfo->getRealPath()}\n";
// array(className)
- $addTestSuites = array();
+ $addTestSuites = [];
$dir = new DirectoryIterator($dirInfo->getRealPath());
foreach ($dir as $fileInfo) {
if ($fileInfo->isReadable() && $fileInfo->isFile()