本文整理汇总了PHP中PHPUnit_Framework_TestSuite::addTestFile方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_TestSuite::addTestFile方法的具体用法?PHP PHPUnit_Framework_TestSuite::addTestFile怎么用?PHP PHPUnit_Framework_TestSuite::addTestFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Framework_TestSuite
的用法示例。
在下文中一共展示了PHPUnit_Framework_TestSuite::addTestFile方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: suite
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite();
$suite->addTestFile(dirname(__FILE__) . '/SqlDao.DatabaseWrapperTest.php');
$suite->addTestFile(dirname(__FILE__) . '/SqlDao.InitializationTest.php');
return $suite;
}
示例2: WebLauncher
/**
* Launches a test module for web inspection of results
* @param string $module
* @return boolean
*/
function WebLauncher($module)
{
jf::$ErrorHandler->UnsetErrorHandler();
$this->LoadFramework();
self::$TestSuite = new \PHPUnit_Framework_TestSuite();
self::$TestFiles[] = $this->ModuleFile($module);
self::$TestSuite->addTestFile(self::$TestFiles[0]);
$result = new \PHPUnit_Framework_TestResult();
$listener = new TestListener();
$result->addListener($listener);
$Profiler = new Profiler();
if (function_exists("xdebug_start_code_coverage")) {
xdebug_start_code_coverage();
}
self::$TestSuite->run($result);
if (function_exists("xdebug_start_code_coverage")) {
$Coverage = xdebug_get_code_coverage();
} else {
$Coverage = null;
}
$Profiler->Stop();
$listener->Finish();
$this->OutputResult($result, $Profiler, $Coverage);
return true;
}
示例3: suite
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('PEAR - PHP_LexerGenerator');
$suite->addTestFile(dirname(__FILE__) . '/LexerTest.php');
$suite->addTestFile(dirname(__FILE__) . '/LexerGeneratorTest.php');
return $suite;
}
示例4: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('All Xml related class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'xml.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helpers' . DS . 'rss.test.php');
return $suite;
}
示例5: suite
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('All FilterPlugin tests');
$suite->addTestFile(dirname(__FILE__) . DS . 'Controller' . DS . 'Component' . DS . 'FilterTest.php');
$suite->addTestFile(dirname(__FILE__) . DS . 'Model' . DS . 'Behaviors' . DS . 'FilteredTest.php');
return $suite;
}
示例6: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('All View class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'view.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'theme.test.php');
return $suite;
}
示例7: addTest
public function addTest($path)
{
// bootstrap invokation is slightly different for PHPUnit
if (file_exists($this->settings['bootstrap'])) {
require_once $this->settings['bootstrap'];
}
$this->suite->addTestFile($path);
}
示例8: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('All Error handling tests');
$libs = CORE_TEST_CASES . DS . 'libs' . DS;
$suite->addTestFile($libs . 'error' . DS . 'error_handler.test.php');
$suite->addTestFile($libs . 'error' . DS . 'exception_renderer.test.php');
return $suite;
}
示例9: suite
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('All Tests');
$path = App::pluginPath('AppDescription') . 'Test' . DS . 'Case' . DS;
$suite->addTestFile($path . 'Lib' . DS . 'GooglePlayApiTest.php');
$suite->addTestFile($path . 'Model' . DS . 'Datasource' . DS . 'AppDescriptionSourceTest.php');
return $suite;
}
示例10: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('All localization class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'i18n.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'l10n.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'multibyte.test.php');
return $suite;
}
示例11: suite
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('orangehrmAttendancePluginAllTest');
/* Dao Test Cases */
$suite->addTestFile(dirname(__FILE__) . '/model/dao/AttendanceDaoTest.php');
/* Service Test Cases */
$suite->addTestFile(dirname(__FILE__) . '/model/service/AttendanceServiceTest.php');
return $suite;
}
示例12: suite
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('All Test Suite classes tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_test_case.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cake_test_fixture.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'html_coverage_report.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'controller_test_case.test.php');
return $suite;
}
示例13: suite
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('orangehrmPerformanceTrackerPluginAllTest');
/* Dao Test Cases */
$suite->addTestFile(dirname(__FILE__) . '/model/dao/PerformanceTrackerDaoTest.php');
/*Services Test Cases*/
$suite->addTestFile(dirname(__FILE__) . '/model/service/PerformanceTrackerServiceTest.php');
return $suite;
}
示例14: suite
/**
* Suite define the tests for this suite
*
* @return void
*/
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('Js Helper and all Engine Helpers');
$helperTestPath = CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helpers' . DS;
$suite->addTestFile($helperTestPath . 'js.test.php');
$suite->addTestFile($helperTestPath . 'jquery_engine.test.php');
$suite->addTestFile($helperTestPath . 'mootools_engine.test.php');
$suite->addTestFile($helperTestPath . 'prototype_engine.test.php');
return $suite;
}
示例15: suite
/**
* Define the tests for this suite
*
* @return PHPUnit_Framework_TestSuite
*/
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('All App Tests');
$path = APP_TEST_CASES . DS;
$suite->addTestFile($path . 'AllLibTest.php');
$suite->addTestFile($path . 'AllModelTest.php');
$suite->addTestFile($path . 'AllControllerTest.php');
$suite->addTestFile($path . 'AllViewTest.php');
return $suite;
}