Sets the name of the test suite.
public __construct ( string $label = false ) | ||
$label | string | Name sent at the start and end of the test. |
function __construct() { parent::__construct(); $this->addFile(dirname(__FILE__) . '/unit/unit-test-wpps-module.php'); $this->addFile(dirname(__FILE__) . '/unit/unit-test-wpps-settings.php'); $this->addFile(dirname(__FILE__) . '/unit/unit-test-wpps-instance-class.php'); }
public function __construct() { parent::__construct(); $this->addFile(TestPath . 'languageforge/semdomtrans/commands/AllTests.php'); $this->addFile(TestPath . 'languageforge/semdomtrans/dto/AllTests.php'); $this->addFile(TestPath . 'languageforge/semdomtrans/models/AllTests.php'); }
public function __construct() { parent::__construct(); $this->addFile(TestPath . 'languageforge/lexicon/dto/LexBaseViewDto_Test.php'); $this->addFile(TestPath . 'languageforge/lexicon/dto/LexDbeDto_Test.php'); $this->addFile(TestPath . 'languageforge/lexicon/dto/LexProjectDto_Test.php'); }
public function __construct() { parent::__construct('RemoteCP Versioning System Tests'); $this->addFile(__DIR__ . '/base_test.php'); $this->addFile(__DIR__ . '/semver_test.php'); $this->addFile(__DIR__ . '/regression_test.php'); }
function __construct() { parent::__construct('All tests'); $p = dirname(__FILE__); ini_set('include_path', dirname($p) . PATH_SEPARATOR . ini_get('include_path')); $this->addFile($p . '/ForgeUpgrade_BucketFilterTest.php'); }
function __construct() { parent::__construct(); $dr = $_SERVER['DOCUMENT_ROOT'] . "/dtest/utests/"; $this->addFile($dr . 'ControllerTests.php'); $this->addFile($dr . 'ViewTests.php'); }
public function __construct() { parent::__construct('Gihp porcelain tests'); $this->add(new porcelain\tree()); $this->add(new porcelain\tag()); $this->add(new porcelain\branch()); }
function __construct() { parent::__construct('All tests for SimpleTest ' . SimpleTest::getVersion()); $this->addFile(dirname(__FILE__) . '/unit_tests.php'); $this->addFile(dirname(__FILE__) . '/shell_test.php'); $this->addFile(dirname(__FILE__) . '/live_test.php'); $this->addFile(dirname(__FILE__) . '/acceptance_test.php'); }
public function __construct($label = false) { if (!$label) { $this->_init(); } else { parent::__construct($label); } }
function __construct() { parent::__construct(); $this->addFile('UnitToppaAutoLoaderWp.php'); $this->addFile('UnitToppaDatabaseFacadeWp.php'); $this->addFile('UnitToppaFunctions.php'); $this->addFile('UnitToppaHtmlFormField.php'); }
public function __construct() { parent::__construct(); $this->addFile(TestPath . 'libraries/scriptureforge/AllTests.php'); $this->addFile(TestPath . 'libraries/LanguageData_Test.php'); $this->addFile(TestPath . 'libraries/ParatextExport_Test.php'); $this->addFile(TestPath . 'libraries/Website_Test.php'); }
function __construct() { parent::__construct('Coverage Unit tests'); $path = dirname(__FILE__) . '/*_test.php'; foreach (glob($path) as $test) { $this->addFile($test); } }
public function __construct() { parent::__construct(); $this->addFile(TestPath . 'scriptureforge/commands/TextCommands_Test.php'); $this->addFile(TestPath . 'scriptureforge/commands/SessionCommands_Test.php'); $this->addFile(TestPath . 'scriptureforge/commands/QuestionCommands_Test.php'); $this->addFile(TestPath . 'scriptureforge/commands/SfchecksUploadCommands_Test.php'); }
function __construct($label = FALSE) { parent::__construct($label); $this->addTestFile('uplTestData.php'); $this->addTestFile('uploadCopyrightData.php'); // agent add data is not ready yet....due to javascript. //$this->addTestFile('AgentAddData.php'); // do the uploads and output in text... }
public function __construct() { parent::__construct(); $this->addFile(TestPath . 'shared/dto/ManageUsersDto_Test.php'); $this->addFile(TestPath . 'shared/dto/ProjectListDto_Test.php'); $this->addFile(TestPath . 'shared/dto/RightsHelper_Test.php'); $this->addFile(TestPath . 'shared/dto/UserProfileDto_Test.php'); $this->addFile(TestPath . 'shared/dto/ProjectManagementDto_Test.php'); }
function __construct() { parent::__construct(); foreach (glob(__DIR__ . "/Test*.php") as $testFile) { if (strpos($testFile, "Data.php") === false) { $this->addFile($testFile); } } }
public function __construct() { parent::__construct(); $this->addFile(TestPath . 'languageforge/lexicon/commands/LexEntryCommands_Test.php'); $this->addFile(TestPath . 'languageforge/lexicon/commands/LexOptionListCommands_Test.php'); $this->addFile(TestPath . 'languageforge/lexicon/commands/LexProjectCommands_Test.php'); $this->addFile(TestPath . 'languageforge/lexicon/commands/LexCommentCommands_Test.php'); $this->addFile(TestPath . 'languageforge/lexicon/commands/LexUploadCommands_Test.php'); }
public function __construct() { parent::__construct('All tests for SimpleTest ' . SimpleTest::getVersion()); $this->addFile(dirname(__FILE__) . '/unit_tests.php'); $this->addFile(dirname(__FILE__) . '/shell_test.php'); $this->addFile(dirname(__FILE__) . '/live_test.php'); // jakoch: disabled acceptance tests. // because, we will not test against a live server over the network. //$this->addFile(dirname(__FILE__) . '/acceptance_test.php'); }
function __construct() { parent::__construct('Extension tests for SimpleTest ' . SimpleTest::getVersion()); $nodes = new RecursiveDirectoryIterator(dirname(__FILE__) . '/../extensions/'); foreach (new RecursiveIteratorIterator($nodes) as $node) { if (preg_match('/test\\.php$/', $node->getFilename())) { $this->addFile($node->getPathname()); } } }
function __construct($dir) { parent::__construct(); if (is_array($dir)) { foreach ($dir as $element) { $this->append($element); } } else { $this->append($dir); } }
public function __construct() { parent::__construct(); $this->addFile(TestPath . 'languageforge/lexicon/LexiconProjectModel_Test.php'); $this->addFile(TestPath . 'languageforge/lexicon/LiftImport_Test.php'); $this->addFile(TestPath . 'languageforge/lexicon/LiftImportFlex_Test.php'); $this->addFile(TestPath . 'languageforge/lexicon/LiftImportZip_Test.php'); $this->addFile(TestPath . 'languageforge/lexicon/commands/AllTests.php'); $this->addFile(TestPath . 'languageforge/lexicon/dto/AllTests.php'); $this->addFile(TestPath . 'languageforge/lexicon/models/AllTests.php'); }
public function __construct() { parent::__construct('All tests'); $pattern = '*Test.php'; $test_directory = dirname(__FILE__) . '/Thumbtack/Crankshaft/Test'; $dir_iterator = new \DirectoryIterator($test_directory); foreach ($dir_iterator as $info) { if (fnmatch($pattern, $info->getFilename())) { $this->addFile($info->getPathname()); } } }
public function __construct() { parent::__construct('All tests for SimpleTest ' . SimpleTest::getVersion()); $this->addFile(dirname(__FILE__) . '/unit_tests.php'); $this->addFile(dirname(__FILE__) . '/shell_test.php'); $this->addFile(dirname(__FILE__) . '/live_test.php'); // The acceptance tests "examples" are served via PHP's built-in webserver, // which is available from PHP5.4 on. if (version_compare(PHP_VERSION, '5.4.0', '>=')) { $this->addFile(dirname(__FILE__) . '/acceptance_test.php'); } }
public function __construct() { parent::__construct('Toupti'); $test_dir = dirname(__FILE__); $this->addFile($test_dir . '/test_request.php'); $this->addFile($test_dir . '/test_response.php'); $this->addFile($test_dir . '/test_route.php'); $this->addFile($test_dir . '/test_middleware_stack.php'); $this->addFile($test_dir . '/test_view.php'); $this->addFile($test_dir . '/test_toupti.php'); $this->addFile($test_dir . '/test_touptitestcase.php'); }
function __construct() { parent::__construct('PHP Merchant Test Suite'); $tests = array('common/php-merchant', 'common/http-curl', 'gateways/paypal', 'gateways/paypal-express-checkout', 'gateways/paypal-ipn'); if (!empty($_GET['remote'])) { $tests = array_merge($tests, array('remote/http-curl', 'remote/paypal-express-checkout')); } $dir = dirname(__FILE__); foreach ($tests as $test) { $this->addFile($dir . '/' . $test . '.php'); } }
function __construct() { parent::__construct('AMP test suite'); // All of the unit tests here fail likely because the test cases are // out of date with how the UserData class works. See the comments // in this file for more details. #$this->addFile('unit_tests/include/AMP/TestUserData.php'); $this->addFile('unit_tests/include/Modules/Payment/TestPayment.php'); $this->addFile('unit_tests/include/Modules/Payment/TestCreditCard.php'); $this->addFile('unit_tests/include/AMP/Article/TestArticleInc.php'); $this->addFile('unit_tests/include/AMP/System/TestUploadInc.php'); }
public function __construct() { parent::__construct(); $this->addFile(TestPath . 'api/AllTests.php'); $this->addFile(TestPath . 'model/AllTests.php'); $this->addFile(TestPath . 'mapper/AllTests.php'); $this->addFile(TestPath . 'communicate/AllTests.php'); $this->addFile(TestPath . 'libraries/AllTests.php'); $this->addFile(TestPath . 'languageforge/AllTests.php'); $this->addFile(TestPath . 'scriptureforge/AllTests.php'); $this->addFile(TestPath . 'shared/AllTests.php'); }
public function __construct() { parent::__construct(); $this->addFile(TestPath . 'scriptureforge/dto/ActivityDto_Test.php'); $this->addFile(TestPath . 'scriptureforge/dto/ProjectPageDto_Test.php'); $this->addFile(TestPath . 'scriptureforge/dto/QuestionListDto_Test.php'); $this->addFile(TestPath . 'scriptureforge/dto/QuestionCommentDto_Test.php'); $this->addFile(TestPath . 'scriptureforge/dto/ProjectSettingsDto_Test.php'); $this->addFile(TestPath . 'scriptureforge/dto/TextSettingsDto_Test.php'); $this->addFile(TestPath . 'scriptureforge/dto/UsxHelper_Test.php'); $this->addFile(TestPath . 'scriptureforge/dto/UsxTrimHelper_Test.php'); }
function __construct() { /* And a little hack to make sure PHP does not timeout */ // http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time set_time_limit(max(5 * 60, ini_get('max_execution_time'))); parent::__construct('All tests for SimpleTest ' . SimpleTest::getVersion()); $this->addFile(dirname(__FILE__) . '/unit_tests.php'); $this->addFile(dirname(__FILE__) . '/shell_test.php'); $this->addFile(dirname(__FILE__) . '/live_test.php'); $this->addFile(dirname(__FILE__) . '/acceptance_test.php'); }
public function __construct() { parent::__construct('All tests for SimpleTest ' . SimpleTest::getVersion()); $this->addFile(__DIR__ . '/unit_tests.php'); $this->addFile(__DIR__ . '/shell_test.php'); /** * The "live" and "acceptance" tests require a running local webserver on "localhost:8080". * We are using PHP's built-in webserver to serve the "test/site". * The start command for the server is: `php -S localhost:8080 -t test/site`. */ $this->addFile(__DIR__ . '/live_test.php'); $this->addFile(__DIR__ . '/acceptance_test.php'); }