• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP AllTests类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中AllTests的典型用法代码示例。如果您正苦于以下问题:PHP AllTests类的具体用法?PHP AllTests怎么用?PHP AllTests使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了AllTests类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: suite

 /**
  * Build the test suite.
  *
  * @return PHPUnit_Framework_TestSuite
  * @access public
  */
 public static function suite()
 {
     $suite = new AllTests('VuFind');
     $suite->addTest(SeleniumAllTests::suite());
     $suite->addTest(WebAllTests::suite());
     return $suite;
 }
开发者ID:bryandease,项目名称:VuFind-Plus,代码行数:13,代码来源:AllTests.php


示例2: suite

 public static function suite()
 {
     $suite = new AllTests('Models');
     $suite->addTest(User_AllTests::suite());
     $suite->addTest(Element_AllTests::suite());
     $suite->addTest(Webservice_AllTests::suite());
     return $suite;
 }
开发者ID:ngocanh,项目名称:pimcore,代码行数:8,代码来源:AllTests.php


示例3: suite

 /**
  * TestSuite
  */
 public static function suite()
 {
     $suite = new AllTests('PHPUnit');
     $base = dirname(__FILE__);
     $files = sfFinder::type('file')->name('*Test.php')->in(array(DIR . '/plugins/sfPhpunitPlugin/test', $base . '/unit', $base . '/functional'));
     foreach ($files as $file) {
         $suite->addTestFile($file);
     }
     return $suite;
 }
开发者ID:pycmam,项目名称:sf-project-template,代码行数:13,代码来源:AllPhpunitTests.php


示例4: suite

 /**
  * TestSuite
  */
 public static function suite()
 {
     $suite = new AllTests('EasyFinance');
     $base = dirname(__FILE__);
     $files = sfFinder::type('file')->name('*Test.php')->in(array($base . '/unit', $base . '/functional'));
     $suite->addTest(EasyFinance_Unit_AllTests::suite());
     foreach ($files as $file) {
         $suite->addTestFile($file);
     }
     return $suite;
 }
开发者ID:ru-easyfinance,项目名称:EasyFinance,代码行数:14,代码来源:AllTests.php


示例5: suite

 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('ErdikoTests');
     $testFiles = AllTests::_getTestFiles();
     foreach ($testFiles as $file) {
         $suite->addTestFile($file);
     }
     return $suite;
 }
开发者ID:rajesh28892,项目名称:erdiko-core,代码行数:9,代码来源:AllTests.php


示例6: foreach

            $_SERVER['argv'][2] = $metaDir . 'config.meta.xml';
            $_SERVER['argv'][] = '--force';
            $_SERVER['argv'][] = '--no-schema-check';
            $_SERVER['argv'][] = '--drop-stale-files';
            include $path;
            AutoloaderPool::get('onPHP')->addPaths(array(ONPHP_META_AUTO_BUSINESS_DIR, ONPHP_META_AUTO_DAO_DIR, ONPHP_META_AUTO_PROTO_DIR, ONPHP_META_DAO_DIR, ONPHP_META_BUSINESS_DIR, ONPHP_META_PROTO_DIR));
            $dBCreator = DBTestCreator::create()->setSchemaPath(ONPHP_META_AUTO_DIR . 'schema.php')->setTestPool(DBTestPool::me());
            $out = MetaConfiguration::me()->getOutput();
            foreach (DBTestPool::me()->getPool() as $connector => $db) {
                DBPool::me()->setDefault($db);
                $out->info('Using ')->info(get_class($db), true)->infoLine(' connector.');
                $dBCreator->dropDB(true);
                $dBCreator->createDB()->fillDB();
                MetaConfiguration::me()->checkIntegrity();
                $out->newLine();
                $dBCreator->dropDB();
            }
            DBPool::me()->dropDefault();
        }
        foreach (self::$paths as $testPath) {
            foreach (glob($testPath . '*Test' . EXT_CLASS, GLOB_BRACE) as $file) {
                $suite->addTestFile($file);
            }
        }
        return $suite;
    }
}
AllTests::$dbs = $dbs;
AllTests::$paths = $testPathes;
AllTests::$workers = $daoWorkers;
开发者ID:onphp-framework,项目名称:onphp-framework,代码行数:30,代码来源:AllTests.php


示例7: dirname

<?php

/* ***********************************************************************************************
 *
 * Phoebius Framework
 *
 * **********************************************************************************************
 *
 * Copyright (c) 2009 Scand Ltd.
 *
 * This program is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation;
 * either version 3 of the License, or (at your option) any later version.
 *
 * You should have received a copy of the GNU Lesser General Public License along with
 * this program; if not, see <http://www.gnu.org/licenses/>.
 *
 ************************************************************************************************/
require dirname(__FILE__) . '/appless.init.php';
// This is needed because ZendPhpUnit launcher does not check the indexes of
// arrays it accesses to :( any access to unexistant index throws an exception
// TODO 1: add halt/unhalt() method pair to avoid direct register()/unregister() calls
//         (such calls are expensive)
// TODO 2: add "kernel" mode - an abstraction over Exceptionizer::halt()/unhalt()
Exceptionizer::getInstance()->unregister();
AllTests::$testPaths = array(PHOEBIUS_BASE_ROOT . DIRECTORY_SEPARATOR . 'tests');
set_include_path(PHOEBIUS_BASE_ROOT . DIRECTORY_SEPARATOR . 'tests' . PATH_SEPARATOR . get_include_path());
开发者ID:phoebius,项目名称:ajax-example,代码行数:27,代码来源:phpunit.init.php


示例8: define

<?php

// $Id$
if (!defined('TEST')) {
    define('TEST', __FILE__);
}
require_once dirname(__FILE__) . '/test_groups.php';
require_once dirname(__FILE__) . '/../reporter.php';
$test = new AllTests();
if (SimpleReporter::inCli()) {
    $result = $test->run(new SelectiveReporter(new TextReporter(), @$argv[1], @$argv[2]));
    return $result ? 0 : 1;
}
$test->run(new SelectiveReporter(new HtmlReporter(), @$_GET['c'], @$_GET['t']));
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:14,代码来源:all_tests.php


示例9: Testsuite_registerTests

function Testsuite_registerTests($name)
{
    AllTests::addTestsuite($name);
}
开发者ID:stuartherbert,项目名称:mf,代码行数:4,代码来源:Testsuite.funcs.php


示例10: suite

 public static function suite()
 {
     $suite = new AllTests();
     // Append all HAR Viewer tests into the suite.
     $suite->addTestSuite("HAR_Test1");
     $suite->addTestSuite("HAR_TestExamples");
     $suite->addTestSuite("HAR_TestPageListService");
     $suite->addTestSuite("HAR_TestPreviewSource");
     $suite->addTestSuite("HAR_TestRemoteLoad");
     $suite->addTestSuite("HAR_TestLoadMultipleFiles");
     $suite->addTestSuite("HAR_TestNoPageLog");
     $suite->addTestSuite("HAR_TestPageTimings");
     $suite->addTestSuite("HAR_TestSchemaTab");
     $suite->addTestSuite("HAR_TestRequestBody");
     $suite->addTestSuite("HAR_TestRemoveTab");
     $suite->addTestSuite("HAR_TestHideTabBar");
     $suite->addTestSuite("HAR_TestShowStatsAndTimeline");
     $suite->addTestSuite("HAR_TestCustomPageTiming");
     $suite->addTestSuite("HAR_TestRemoveToolbarButton");
     $suite->addTestSuite("HAR_TestTimeStamps");
     $suite->addTestSuite("HAR_TestPhases");
     //$suite->addTestSuite("HAR_TestLoadHarAPI");
     $suite->addTestSuite("HAR_TestNoPageGraph");
     $suite->addTestSuite("HAR_TestEmbeddedPreview");
     $suite->addTestSuite("HAR_TestCustomizeColumns");
     $suite->addTestSuite("HAR_TestSearchHAR");
     $suite->addTestSuite("HAR_TestPreviewExpand");
     $suite->addTestSuite("HAR_TestEmbeddedInvalidPreview");
     $suite->addTestSuite("HAR_TestSearchJsonQuery");
     return $suite;
 }
开发者ID:TrackIF,项目名称:harviewer,代码行数:31,代码来源:allTests.php


示例11: getConnection

 /**
  *  Create database connection for this instance
  *
  *  @return PHPUnit_Extensions_Database_DB_IDatabaseConnection connection
  */
 protected function getConnection()
 {
     AllTests::installDB();
     return $this->createDefaultDBConnection(AllTests::$utils->pdo, 'civicrm_tests_dev');
 }
开发者ID:ksecor,项目名称:civicrm,代码行数:10,代码来源:CiviUnitTestCase.php


示例12: paintPass

        return parent::_getCss() . ' .pass { color: green; }';
    }
}
class ShowSimplePasses extends TextReporter
{
    var $lastfile = '';
    function paintPass($message)
    {
        parent::paintPass($message);
        $breadcrumb = $this->getTestList();
        array_shift($breadcrumb);
        if ($this->lastfile != $breadcrumb[0]) {
            print "{$breadcrumb['0']}\n";
            $this->lastfile = $breadcrumb[0];
        }
        array_shift($breadcrumb);
        print "\t" . implode(":", $breadcrumb) . ": OK\n";
        //print ": $message\n";
    }
}
class AllTests extends TestSuite
{
    function AllTests()
    {
        $this->TestSuite('All tests');
        $this->addFile('tests/activerecord.php');
        //        $this->addFile('tests/livetest.php');
    }
}
$test = new AllTests();
$test->run(new ShowSimplePasses());
开发者ID:haakonnessjoen,项目名称:SimpleActiveRecord,代码行数:31,代码来源:all_tests.php


示例13: define

<?php

/**
Copyright 2011-2015 Nick Korbel

This file is part of Booked Scheduler.

Booked Scheduler is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Booked Scheduler is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Booked Scheduler.  If not, see <http://www.gnu.org/licenses/>.
*/
define('ROOT_DIR', dirname(__FILE__) . '/../');
require_once ROOT_DIR . 'tests/AllTests.php';
$suite = AllTests::suite();
$suite->run();
开发者ID:utn-frm-si,项目名称:booked,代码行数:24,代码来源:debug.php


示例14: define

<?php

// $Id: all_tests.php,v 1.2 2004/08/16 08:55:24 hfuecks Exp $
require_once 'simple_include.php';
require_once 'calendar_include.php';
define("TEST_RUNNING", true);
require_once './calendar_tests.php';
require_once './calendar_tabular_tests.php';
require_once './validator_tests.php';
require_once './calendar_engine_tests.php';
require_once './calendar_engine_tests.php';
require_once './table_helper_tests.php';
require_once './decorator_tests.php';
require_once './util_tests.php';
class AllTests extends GroupTest
{
    function AllTests()
    {
        $this->GroupTest('All PEAR::Calendar Tests');
        $this->AddTestCase(new CalendarTests());
        $this->AddTestCase(new CalendarTabularTests());
        $this->AddTestCase(new ValidatorTests());
        $this->AddTestCase(new CalendarEngineTests());
        $this->AddTestCase(new TableHelperTests());
        $this->AddTestCase(new DecoratorTests());
        $this->AddTestCase(new UtilTests());
    }
}
$test = new AllTests();
$test->run(new HtmlReporter());
开发者ID:godboko,项目名称:modules,代码行数:30,代码来源:all_tests.php


示例15: suite

 public static function suite()
 {
     $suite = new AllTests();
     $tdir = dirname(__FILE__);
     $suite->addTestFile($tdir . '/BookmarkTest.php');
     $suite->addTestFile($tdir . '/Bookmark2TagTest.php');
     $suite->addTestFile($tdir . '/Tag2TagTest.php');
     $suite->addTestFile($tdir . '/TagsCacheTest.php');
     $suite->addTestFile($tdir . '/CommonDescriptionTest.php');
     $suite->addTestFile($tdir . '/SearchHistoryTest.php');
     $suite->addTestFile($tdir . '/TagTest.php');
     $suite->addTestFile($tdir . '/VoteTest.php');
     $suite->addTestFile($tdir . '/UserTest.php');
     $suite->addTestFile($tdir . '/Api/ExportCsvTest.php');
     $suite->addTestFile($tdir . '/Api/OpenSearchTest.php');
     $suite->addTestFile($tdir . '/Api/PostsAddTest.php');
     $suite->addTestFile($tdir . '/Api/PostsDeleteTest.php');
     $suite->addTestFile($tdir . '/Api/PostsUpdateTest.php');
     return $suite;
 }
开发者ID:MarxGonzalez,项目名称:SemanticScuttle,代码行数:20,代码来源:AllTests.php


示例16: define

if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'AllTests::main');
}
/**
 * @see ZendX_AllTests
 */
require_once 'ZendX/AllTests.php';
class AllTests
{
    public static function main()
    {
        $parameters = array();
        if (TESTS_GENERATE_REPORT && extension_loaded('xdebug')) {
            $parameters['reportDirectory'] = TESTS_GENERATE_REPORT_TARGET;
        }
        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(), $parameters);
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Zend Framework Extras');
        $suite->addTest(ZendX_AllTests::suite());
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
    AllTests::main();
}
开发者ID:be-dmitry,项目名称:zf1,代码行数:31,代码来源:AllTests.php


示例17:

<?php

require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'init.php';
require_once 'test/alltests.class.php';
$result = PHPUnit_TextUI_TestRunner::run(AllTests::suite());
开发者ID:ahmedmehdilaabidi,项目名称:mantis-rest,代码行数:7,代码来源:run_all.php


示例18: installDB

 /**
  *  Install the test database
  */
 public static function installDB()
 {
     static $dbInit = false;
     if (!$dbInit) {
         echo PHP_EOL . "Installing civicrm_tests_dev database" . PHP_EOL;
         //  create test database
         self::$utils = new Utils($GLOBALS['mysql_host'], $GLOBALS['mysql_user'], $GLOBALS['mysql_pass']);
         $query = "DROP DATABASE IF EXISTS civicrm_tests_dev;" . "CREATE DATABASE civicrm_tests_dev DEFAULT" . " CHARACTER SET utf8 COLLATE utf8_unicode_ci;" . "USE civicrm_tests_dev;" . "SET SQL_MODE='STRICT_ALL_TABLES';" . "SET foreign_key_checks = 1";
         if (self::$utils->do_query($query) === false) {
             //  failed to create test database
             exit;
         }
         //  initialize test database
         $sql_file = dirname(dirname(dirname(__FILE__))) . "/sql/civicrm.mysql";
         $sql_file1 = dirname(dirname(dirname(__FILE__))) . "/sql/civicrm_data.mysql";
         $query = file_get_contents($sql_file);
         $query1 = file_get_contents($sql_file1);
         if (self::$utils->do_query($query) === false) {
             //  failed to initialze test database
             exit;
         }
         if (self::$utils->do_query($query1) === false) {
             //  failed to initialze test database
             exit;
         }
         $dbInit = true;
     }
     return self::$db_conn;
 }
开发者ID:ksecor,项目名称:civicrm,代码行数:32,代码来源:AllTests.php


示例19: getInstance

 /**
  */
 private static function getInstance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
开发者ID:FundingWorks,项目名称:civicrm-core,代码行数:9,代码来源:AllTests.php


示例20: suite

 static function suite()
 {
     if (isset($GLOBALS[self::GLOBALS_TEST_PATHS_INDEX])) {
         self::$testPaths = $GLOBALS[self::GLOBALS_TEST_PATHS_INDEX];
     }
     Exceptionizer::getInstance()->register(E_ALL | E_STRICT, false, 'InternalOperationException');
     return new PhoebiusTestSuite(self::$testPaths);
 }
开发者ID:phoebius,项目名称:ajax-example,代码行数:8,代码来源:AllTests.class.php



注:本文中的AllTests类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP All_in_One_SEO_Pack_Module类代码示例发布时间:2022-05-23
下一篇:
PHP AllPermissionsOptimizationUtil类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap