當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TestManager類代碼示例

本文整理匯總了PHP中TestManager的典型用法代碼示例。如果您正苦於以下問題:PHP TestManager類的具體用法?PHP TestManager怎麽用?PHP TestManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了TestManager類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的TestManager類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。