<?php // Include the test framework include '../EnhanceTestFramework.php'; // Find the tests - '.' is the current folder \Enhance\Core::discoverTests('.', true, array('Exclusion')); // Run the tests \Enhance\Core::runTests(); ?>
<?php include_once 'EnhanceTestFramework.php'; include_once 'parse.php'; //UNCOMMENT AN INDIVIDUAL FILE TESTS OR JUST THE DISCOVERTESTS LINE FOR ALL TESTS //include_once 'tests/parseObjectTest.php'; //include_once 'tests/parseQueryTest.php'; //include_once 'tests/parseUserTest.php'; //include_once 'tests/parseFileTest.php'; //include_once 'tests/parsePushTest.php'; //include_once 'tests/parseGeoPointTest.php'; \Enhance\Core::discoverTests('tests/'); \Enhance\Core::runTests();
\Enhance\Core::discoverTests($path); $run = TRUE; } break; case 'questions': $folder = opendir("../plugins/questions"); while (($entry = readdir($folder)) != "") { if ($entry == '.' or $entry == '..') { continue; } \Enhance\Core::discoverTests('../plugins/questions/' . $entry . '/test/'); } $folder = closedir($folder); $run = TRUE; break; default: $path = realpath('./unit_tests/' . $_GET['test']); echo "<h2>Looking for test in {$path}</h2>"; if ($path !== FALSE) { if (is_dir($path) and stristr($path, 'unit_tests') !== FALSE) { \Enhance\Core::discoverTests($path); $run = TRUE; } } break; } if ($run == TRUE) { // Run the tests \Enhance\Core::runTests(); } }
<?php // Include the test framework include '../EnhanceTestFramework.php'; // Set the language \Enhance\Core::setLanguage(\Enhance\Language::Deutsch); // Find the tests - '.' is the current folder \Enhance\Core::discoverTests('.'); // Run the tests \Enhance\Core::runTests();
<?php require_once __DIR__ . '/EnhanceTestFramework.php'; \Enhance\Core::discoverTests('.', true, array('yaml')); \Enhance\Core::runTests();