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

PHP TestManager类代码示例

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

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



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

示例1: test__construct

 public function test__construct()
 {
     $metadata = new ClassMetadata(__NAMESPACE__ . '\\ModelTest');
     $metadata->addModel('entity', __NAMESPACE__ . '\\EntityTest');
     $metadata->setIdentifier('entity', 'id');
     $metadataFactory = $this->getMock('Pok\\PoolDBM\\Mapping\\ClassMetadataFactory', array('getMetadataFor', 'setModelManager'));
     $metadataFactory->expects($this->any())->method('getMetadataFor')->will($this->returnValue($metadata));
     $refl = new \ReflectionClass('Pok\\PoolDBM\\Manager\\BaseManager');
     $this->assertTrue($refl->isInstantiable());
     $pool = new Pool();
     $pool->addManager('entity', new EntityManager());
     $manager = new TestManager(__NAMESPACE__ . '\\ModelTest', new ModelManager($pool, $metadataFactory));
     $this->assertInstanceOf('Pok\\PoolDBM\\ModelRepository', $manager->getRepository($manager));
     $this->assertInstanceOf(__NAMESPACE__ . '\\ModelTest', $manager->create());
     $manager->save(new ModelTest());
     $manager->save(new ModelTest(), true);
     try {
         $manager->save(new \stdClass());
     } catch (\RuntimeException $e) {
         $this->assertEquals('Manager "Pok\\PoolDBM\\Tests\\Manager\\TestManager" is unable to save model "stdClass"', $e->getMessage());
     }
     $manager->clear();
     $this->assertInstanceOf(__NAMESPACE__ . '\\ModelTest', $manager->find(null));
     $this->assertEquals(1, count($manager->findBy(array())));
     $this->assertInstanceOf(__NAMESPACE__ . '\\ModelTest', $manager->findOneBy(array()));
     $this->assertEquals(1, count($manager->findAll()));
 }
开发者ID:pokap,项目名称:pool-dbm,代码行数:27,代码来源:BaseManagerTest.php


示例2: handleCustomTestSuite

 /**
  * Sets the proper test suite to use and loads the test file in it.
  * this method gets called as a callback from the parent class
  *
  * @return void
  */
 protected function handleCustomTestSuite()
 {
     $manager = new TestManager($this->_params);
     if (!empty($this->_params['case'])) {
         $this->arguments['test'] = $manager->getTestSuite();
         $this->arguments['test']->setFixtureManager($manager->getFixtureManager());
         $manager->loadCase($this->_params['case'] . '.test.php', $this->arguments['test']);
     }
 }
开发者ID:no2key,项目名称:Web-Framework-Benchmark,代码行数:15,代码来源:test_runner.php


示例3: AllCoreJavascriptHelpersGroupTest

	/**
	 * AllCoreHelpersGroupTest method
	 *
	 * @access public
	 * @return void
	 */
	function AllCoreJavascriptHelpersGroupTest() {
		$helperTestPath = CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helpers' . DS;
		TestManager::addTestFile($this, $helperTestPath . 'js.test.php');
		TestManager::addTestFile($this, $helperTestPath . 'jquery_engine.test.php');
		TestManager::addTestFile($this, $helperTestPath . 'mootools_engine.test.php');
		TestManager::addTestFile($this, $helperTestPath . 'prototype_engine.test.php');
	}
开发者ID:ralmeida,项目名称:FoundFree.org,代码行数:13,代码来源:javascript.group.php


示例4: ControllerGroupTest

	/**
	 * LibControllerGroupTest method
	 *
	 * @access public
	 * @return void
	 */
	function ControllerGroupTest() {
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'controller');
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'scaffold');
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'pages_controller');
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'component');
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'controller' . DS . 'controller_merge_vars');
	}
开发者ID:ralmeida,项目名称:FoundFree.org,代码行数:13,代码来源:controller.group.php


示例5: ModelGroupTest

 function ModelGroupTest()
 {
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'db_acl');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'datasources' . DS . 'dbo_source');
     TestManager::addTestCasesFromDirectory($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'behaviors');
 }
开发者ID:kaz0636,项目名称:openflp,代码行数:7,代码来源:model.group.php


示例6: ControllersGroupTest

 public function ControllersGroupTest()
 {
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'addresses_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'alerts_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'app_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'app_settings_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'attachments_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'campuses_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'comments_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'covenants_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'dates_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'households_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'invitations_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'involvement_leaders_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'involvements_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'leaders_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'merge_requests_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'ministries_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'ministry_leaders_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'notifications_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'pages_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'payment_options_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'payments_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'reports_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'roles_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'rosters_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'searches_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'sys_emails_controller');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'controllers' . DS . 'users_controller');
 }
开发者ID:styfle,项目名称:core,代码行数:30,代码来源:controllers.group.php


示例7: get_instance

 /**
  * Retrieves the singleton instance
  * @return TestManager the instance
  */
 public static function get_instance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
开发者ID:setola,项目名称:wordpress-theme-utils-classes,代码行数:11,代码来源:TestsManager.class.php


示例8: testBasicQuery

 public function testBasicQuery()
 {
     TestManager::loadBasicDummyData();
     $database = new DatabaseManager();
     $resource = $database->query("SHOW TABLES");
     $this->assertNotEquals(false, $resource);
 }
开发者ID:hoff121324,项目名称:GlassWebsite,代码行数:7,代码来源:databaseTest.php


示例9: DatabaseGroupTest

 /**
  * ModelGroupTest method
  *
  * @access public
  * @return void
  */
 function DatabaseGroupTest()
 {
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'db_acl');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'schema');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'connection_manager');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'datasources' . DS . 'dbo_source');
 }
开发者ID:acerato,项目名称:cntcetp,代码行数:13,代码来源:database.group.php


示例10: TestSuiteGroupTest

 /**
  * TestSuiteGroupTest method
  *
  * @access public
  * @return void
  */
 function TestSuiteGroupTest()
 {
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'test_manager');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'code_coverage_manager');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'cake_test_case');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'cake_test_fixture');
 }
开发者ID:cls1991,项目名称:ryzomcore,代码行数:13,代码来源:test_suite.group.php


示例11: AllCompatibleGroupTest

 function AllCompatibleGroupTest()
 {
     $cases = dirname(dirname(__FILE__)) . DS . 'cases' . DS;
     TestManager::addTestCasesFromDirectory($this, $cases . DS . 'models' . DS . 'behaviors');
     TestManager::addTestCasesFromDirectory($this, $cases . DS . 'libs');
     TestManager::addTestCasesFromDirectory($this, $cases . DS . 'views' . DS . 'helpers');
 }
开发者ID:Techmentis,项目名称:flinkiso-lite,代码行数:7,代码来源:compatible.group.php


示例12: HelpersGroupTest

 public function HelpersGroupTest()
 {
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'helpers' . DS . 'app_helper');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'helpers' . DS . 'formatting');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'helpers' . DS . 'permission');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'helpers' . DS . 'select_options');
     TestManager::addTestFile($this, APP . 'tests' . DS . 'cases' . DS . 'helpers' . DS . 'report');
 }
开发者ID:styfle,项目名称:core,代码行数:8,代码来源:helpers.group.php


示例13: allGroupTest

 function allGroupTest()
 {
     TestManager::addTestCasesFromDirectory($this, APP_TEST_CASES . DS . 'models');
     TestManager::addTestCasesFromDirectory($this, APP_TEST_CASES . DS . 'helpers');
     TestManager::addTestCasesFromDirectory($this, APP_TEST_CASES . DS . 'controllers');
     TestManager::addTestCasesFromDirectory($this, APP_TEST_CASES . DS . 'components');
     TestManager::addTestCasesFromDirectory($this, APP_TEST_CASES . DS . 'behaviors');
 }
开发者ID:antte,项目名称:codemitts,代码行数:8,代码来源:all.group.php


示例14: ModelGroupTest

	/**
	 * ModelGroupTest method
	 *
	 * @access public
	 * @return void
	 */
	function ModelGroupTest() {
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model_behavior');
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model_read');
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model_write');
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model_delete');
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model_integration');
		TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'model' . DS . 'model_validation');
	}
开发者ID:ralmeida,项目名称:FoundFree.org,代码行数:14,代码来源:model.group.php


示例15: project_check_group

	function project_check_group() 
	{
	  $this->GroupTest('project tests');
	  
	  TestManager::addTestCasesFromDirectory($this, LIMB_DIR . '/tests/cases/project_check');
	  
	  SiteObjectsTestManager::addTestCasesWithLoader($this, new project_site_objects_loader());
	}	
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:__project_check_group.class.php


示例16: testRunAllTests

 /**
  * testRunAllTests method
  *
  * @return void
  * @access public
  */
 function testRunAllTests()
 {
     $folder = new Folder($this->Sut->_getTestsPath());
     $extension = str_replace('.', '\\.', TestManager::getExtension('test'));
     $out = $folder->findRecursive('.*' . $extension);
     $reporter = new CakeHtmlReporter();
     $list = TestManager::runAllTests($reporter, true);
     $this->assertEqual(count($out), count($list));
 }
开发者ID:robksawyer,项目名称:cakephp2x,代码行数:15,代码来源:test_manager.test.php


示例17: execute

 /**
  * Вызов выполнения метода. Используется из ajax.
  */
 public static function execute($method, array $params)
 {
     check_condition(array_key_exists($method, self::getMethodsList()), "Method TestManager::{$method} cannot be called");
     PsUtil::startUnlimitedMode();
     PsLogger::inst('TestManager')->info("Method TestManager::{$method} called with params: " . array_to_string($params));
     $s = Secundomer::startedInst();
     call_user_func_array(array(TestManager::inst(), $method), $params);
     $s->stop();
     PsLogger::inst('TestManager')->info("Call done in {$s->getTotalTime()} seconds");
 }
开发者ID:ilivanoff,项目名称:www,代码行数:13,代码来源:TestManagerCaller.php


示例18: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     InterfaceTest::$process = proc_open("java \"-Dwebdriver.chrome.driver=res/chromedriver.exe\" -jar res/selenium-server-standalone-2.48.2.jar", [["pipe", "r"], ["pipe", "w"]], $pipe);
     if (InterfaceTest::$process === false) {
         throw new Exception("Failed to start selenium server");
     }
     //loads a verified user 'testuser' with blid '4833' and email '[email protected]` and password 'asdf'
     TestManager::loadBasicDummyData();
     InterfaceTest::$webDriver = RemoteWebDriver::create("http://localhost:4444/wd/hub", DesiredCapabilities::chrome());
 }
开发者ID:hoff121324,项目名称:GlassWebsite,代码行数:10,代码来源:interfaceTest.php


示例19: AllCoreWithOutDatabaseGroupTest

 /**
  * AllCoreWithOutDatabaseGroupTest method
  * 
  * @access public
  * @return void
  */
 function AllCoreWithOutDatabaseGroupTest()
 {
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'dispatcher');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'router');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'inflector');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'validation');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'session');
     TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'socket');
     TestManager::addTestCasesFromDirectory($this, CORE_TEST_CASES . DS . 'libs' . DS . 'view');
 }
开发者ID:javierm,项目名称:wildflower,代码行数:16,代码来源:no_database.group.php


示例20: NoCrossContaminationGroupTest

 /**
  * NoCrossContaminationGroupTest method
  *
  * @access public
  * @return void
  */
 function NoCrossContaminationGroupTest()
 {
     App::import('Core', 'Folder');
     $Folder = new Folder(CORE_TEST_CASES);
     foreach ($Folder->findRecursive('.*\\.test\\.php', true) as $file) {
         if (in_array(basename($file), $this->blacklist)) {
             continue;
         }
         TestManager::addTestFile($this, $file);
     }
 }
开发者ID:adaptivertc,项目名称:mosat,代码行数:17,代码来源:no_cross_contamination.group.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP TestReflection类代码示例发布时间:2022-05-23
下一篇:
PHP TestHelperMShop类代码示例发布时间: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