$output = array(); } // run all test suites in each test folder $passedAllTests = true; foreach ($testFolders as $key => $folder) { // take a snapshot of all log files $snapshots = []; if (!empty(TestConfig::getConfig('testLogFiles'))) { foreach (explode(",", TestConfig::getConfig('testLogFiles')) as $k => $logFile) { $snapshots[$logFile] = FileSystemTools::tail($logFile, 30); } } // run the test echo 'RUN TESTS ' . $folder; ob_start(); $testResult = TestRunner::runTests($folder); $testOutput = ob_get_contents(); ob_end_clean(); if (!$testResult['result']) { $passedAllTests = false; $output[] = "TEST FAILED"; } else { $output[] = "TEST PASSED"; } $output[] = $testOutput; //$output=array_merge($output,$testResult['output']); // CHECK PHP LOG FILE if (!empty(TestConfig::getConfig('testLogFiles'))) { foreach (explode(",", TestConfig::getConfig('testLogFiles')) as $k => $logFile) { $lines = FileSystemTools::checkChangesToFile($snapshots[$logFile], $logFile); if (count($lines) > 0) {