本文整理汇总了PHP中PHPUnit_TextUI_TestRunner::run方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_TextUI_TestRunner::run方法的具体用法?PHP PHPUnit_TextUI_TestRunner::run怎么用?PHP PHPUnit_TextUI_TestRunner::run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_TextUI_TestRunner
的用法示例。
在下文中一共展示了PHPUnit_TextUI_TestRunner::run方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: main
/**
* Runs the test methods of this class.
*
* @return void
*/
public static function main()
{
require_once "PHPUnit/TextUI/TestRunner.php";
$suite = new PHPUnit_Framework_TestSuite("Zend_Loader_PluginLoaderTest");
$result = PHPUnit_TextUI_TestRunner::run($suite);
}
示例2: main
/**
* Runs the test methods of this class.
*
* @access public
* @static
*/
public static function main()
{
require_once('PHPUnit/TextUI/TestRunner.php');
$suite = new PHPUnit_Framework_TestSuite('CampDatabaseTest');
$result = PHPUnit_TextUI_TestRunner::run($suite);
}
示例3: main
public static function main()
{
$suite = new PHPUnit_Framework_TestSuite( 'AllTests' );
$suite->addTestSuite( 'MKVMergeCommandGeneratorTest' );
$result = PHPUnit_TextUI_TestRunner::run( $suite );
}
示例4: main
public static function main()
{
if (TESTS_ZEND_SERVICE_WINDOWSAZURE_SESSIONHANDLER_RUNTESTS) {
$suite = new PHPUnit_Framework_TestSuite("Zend_Service_WindowsAzure_BlobSessionHandlerTest");
$result = PHPUnit_TextUI_TestRunner::run($suite);
}
}
示例5: main
/**
* Runs the test methods of this class.
*/
public static function main()
{
require_once "PHPUnit/TextUI/TestRunner.php";
$suite = new PHPUnit_Framework_TestSuite("Zend_Controller_Action_Helper_RedirectorTest");
$result = PHPUnit_TextUI_TestRunner::run($suite);
}
示例6: testDB
public function testDB()
{
$test_suites = new PHPUnit_Framework_TestSuite();
$test_suites->addTestSuite('Socialad_DB_Test');
$arguments = array();
PHPUnit_TextUI_TestRunner::run($test_suites, $arguments);
}
示例7: main
public static function main()
{
if (TESTS_ZEND_SERVICE_WINDOWSAZURE_MANAGEMENT_RUNTESTS) {
$suite = new PHPUnit_Framework_TestSuite("Zend_Service_WindowsAzure_Management_ManagementClientTest");
$result = PHPUnit_TextUI_TestRunner::run($suite);
}
}
示例8: main
/**
* Runs the test methods of this class.
*
* @access public
* @static
*/
public static function main()
{
require_once "PHPUnit/TextUI/TestRunner.php";
$suite = new PHPUnit_Framework_TestSuite("Zend_InfoCard_ProcessTest");
$result = PHPUnit_TextUI_TestRunner::run($suite);
}
示例9: main
public static function main()
{
if (TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_RUNTESTS) {
$suite = new PHPUnit_Framework_TestSuite("Zend_Service_WindowsAzure_QueueStorageTest");
$result = PHPUnit_TextUI_TestRunner::run($suite);
}
}
示例10: main
public static function main()
{
if (!function_exists('phpunit_autoload')) {
require_once 'PHPUnit/TextUI/TestRunner.php';
}
PHPUnit_TextUI_TestRunner::run(self::suite());
}
示例11: indexAction
/**
*
*/
public function indexAction()
{
$argv = $this->getRequest()->getServer('argv');
$test_to_run = isset($argv[3]) ? $argv[3] : Const_Tests::RUN_ALL_TESTS;
$test_to_run = str_replace('_', '/', $test_to_run);
foreach (Core_Files::listFiles(cfg()->tests_path) as $test) {
if (!strstr($test, $test_to_run . '.php') && $test_to_run != Const_Tests::RUN_ALL_TESTS) {
continue;
}
$class_path = str_replace(cfg()->tests_path, '', $test);
$class_path_frag = explode('/', $class_path);
$class_path_frag = array_map("ucfirst", $class_path_frag);
$class_path_frag[count($class_path_frag) - 1] = str_replace('.php', '', $class_path_frag[count($class_path_frag) - 1]);
$class = implode('_', $class_path_frag);
$class_name = 'Tests_' . $class . 'File';
echo '--------------------------------------' . PHP_EOL;
echo 'Running test: ' . $class_name . PHP_EOL;
echo '--------------------------------------' . PHP_EOL;
$phpunit = new PHPUnit_TextUI_TestRunner();
$phpunit->run($phpunit->getTest($class_name, $test), array('colors' => 'auto'));
if ($test_to_run != Const_Tests::RUN_ALL_TESTS) {
die;
}
echo PHP_EOL . PHP_EOL;
}
die;
}
示例12: main
public static function main()
{
if (!class_exists('PHPUnit_TextUI_TestRunner', true)) {
require_once 'PHPUnit/TextUI/TestRunner.php';
}
PHPUnit_TextUI_TestRunner::run(self::suite());
}
示例13: run
public function run($className)
{
$rootPath = str_replace('\\', '/', $this->application->config()['paths']['root']);
$reflection = new \ReflectionClass($className);
$testRunner = new TestRunner();
$testRunner->run($reflection);
}
示例14: main
public static function main()
{
if (stream_resolve_include_path('PHPUnit/TextUI/TestRunner.php')) {
include_once 'PHPUnit/TextUI/TestRunner.php';
}
PHPUnit_TextUI_TestRunner::run(new PHPUnit_Framework_TestSuite('HTML_Page2_GetBodyContent_Test'));
}
示例15: main
public static function main()
{
if (defined('TESTS_ZEND_LOCALE_FORMAT_SETLOCALE') && TESTS_ZEND_LOCALE_FORMAT_SETLOCALE) {
// run all tests in a special locale
setlocale(LC_ALL, TESTS_ZEND_LOCALE_FORMAT_SETLOCALE);
}
PHPUnit_TextUI_TestRunner::run(self::suite());
}