private function addBootstrap($tests)
{
foreach ($tests as $filename) {
if (file_exists($filename)) {
$case1 = strpos($filename, 'tests');
$case2 = strpos($filename, 'Tests');
if (is_numeric($case1)) {
$path = substr($filename, 0, $case1 + 6) . 'bootstrap.php';
if (file_exists($path)) {
require_once $path;
}
}
if (is_numeric($case2)) {
$path = substr($filename, 0, $case2 + 6) . 'bootstrap.php';
if (file_exists($path)) {
require_once $path;
}
}
}
}
}