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


PHP DebugKitDebugger::clearTimers方法代碼示例

本文整理匯總了PHP中DebugKitDebugger::clearTimers方法的典型用法代碼示例。如果您正苦於以下問題:PHP DebugKitDebugger::clearTimers方法的具體用法?PHP DebugKitDebugger::clearTimers怎麽用?PHP DebugKitDebugger::clearTimers使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DebugKitDebugger的用法示例。


在下文中一共展示了DebugKitDebugger::clearTimers方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Configure::write('log', true);
     DebugKitDebugger::clearTimers();
     TestFireCake::reset();
 }
開發者ID:juliocp88,項目名稱:cakephp-example,代碼行數:12,代碼來源:DebugKitDebuggerTest.php

示例2: tearDown

 /**
  * End a test
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Article);
     ClassRegistry::flush();
     DebugKitDebugger::clearTimers();
 }
開發者ID:hupla78,項目名稱:Nadia,代碼行數:12,代碼來源:TimedBehaviorTest.php

示例3: endTest

 /**
  * tear down function
  *
  * @return void
  **/
 function endTest()
 {
     App::build(array('plugins' => $this->_paths['plugins'], 'views' => $this->_paths['views'], 'vendors' => $this->_paths['vendors'], 'controllers' => $this->_paths['controllers']));
     unset($this->View, $this->Controller);
     DebugKitDebugger::clearTimers();
     Configure::write('debug', $this->_debug);
 }
開發者ID:ambagasdowa,項目名稱:kml,代碼行數:12,代碼來源:debug.test.php

示例4: endTest

 /**
  * tear down function
  *
  * @return void
  **/
 function endTest()
 {
     Configure::write('pluginPaths', $this->_paths['plugin']);
     Configure::write('viewPaths', $this->_paths['view']);
     Configure::write('vendorPaths', $this->_paths['vendor']);
     Configure::write('controllerPaths', $this->_paths['controller']);
     unset($this->View, $this->Controller);
     DebugKitDebugger::clearTimers();
     Configure::write('debug', $this->_debug);
 }
開發者ID:masayukiando,項目名稱:googlemap-search_ActionScript3.0,代碼行數:15,代碼來源:debug.test.php

示例5: endTest

 /**
  * endTest
  *
  * @return void
  **/
 function endTest()
 {
     $_SERVER = $this->_server;
     Configure::write('pluginPaths', $this->_paths['plugin']);
     Configure::write('viewPaths', $this->_paths['view']);
     Configure::write('vendorPaths', $this->_paths['vendor']);
     Configure::write('controllerPaths', $this->_paths['controller']);
     Configure::write('Cache.disable', true);
     unset($this->Controller);
     if (class_exists('DebugKitDebugger')) {
         DebugKitDebugger::clearTimers();
     }
 }
開發者ID:masayukiando,項目名稱:cakephp1.3-mailmagazine,代碼行數:18,代碼來源:toolbar.test.php

示例6: endTest

 /**
  * end a test
  *
  * @return void
  */
 function endTest()
 {
     unset($this->Article);
     ClassRegistry::flush();
     DebugKitDebugger::clearTimers();
 }
開發者ID:vinicius-ianni,項目名稱:PHPMyScrum,代碼行數:11,代碼來源:timed.test.php

示例7: tearDown

 /**
  * tearDown method
  *
  * @access public
  * @return void
  */
 function tearDown()
 {
     Configure::write('log', true);
     DebugKitDebugger::clearTimers();
 }
開發者ID:afzet,項目名稱:cake-cart,代碼行數:11,代碼來源:debug_kit_debugger.test.php

示例8: tearDown

/**
 * endTest
 *
 * @return void
 **/
	public function tearDown() {
		parent::tearDown();

		$_SERVER = $this->_server;
		$_GET = $this->_get;
		App::build(array(
			'plugins' => $this->_paths['plugins'],
			'views' => $this->_paths['views'],
			'controllers' => $this->_paths['controllers'],
			'vendors' => $this->_paths['vendors']
		), true);
		Configure::write('Cache.disable', true);

		unset($this->Controller);
		ClassRegistry::flush();
		if (class_exists('DebugKitDebugger')) {
			DebugKitDebugger::clearTimers();
			DebugKitDebugger::clearMemoryPoints();
		}
		Router::reload();
	}
開發者ID:neterslandreau,項目名稱:tubones,代碼行數:26,代碼來源:ToolbarComponentTest.php

示例9: tearDown

 /**
  * teardown
  *
  * @return void
  **/
 function tearDown()
 {
     unset($this->Controller);
     if (class_exists('DebugKitDebugger')) {
         DebugKitDebugger::clearTimers();
     }
 }
開發者ID:kondrat,項目名稱:agift,代碼行數:12,代碼來源:toolbar.test.php

示例10: endTest

 /**
  * endTest
  *
  * @return void
  **/
 function endTest()
 {
     $_SERVER = $this->_server;
     App::build(array('plugins' => $this->_paths['plugins'], 'views' => $this->_paths['views'], 'controllers' => $this->_paths['controllers'], 'vendors' => $this->_paths['vendors']), true);
     Configure::write('Cache.disable', true);
     unset($this->Controller);
     if (class_exists('DebugKitDebugger')) {
         DebugKitDebugger::clearTimers();
         DebugKitDebugger::clearMemoryPoints();
     }
 }
開發者ID:rakeshraushan,項目名稱:cake-php-web-crawler,代碼行數:16,代碼來源:toolbar.test.php

示例11: tearDown

 /**
  * tear down function
  *
  * @return void
  **/
 function tearDown()
 {
     unset($this->View, $this->Controller);
     DebugKitDebugger::clearTimers();
     Configure::write('debug', $this->_debug);
 }
開發者ID:afzet,項目名稱:cake-cart,代碼行數:11,代碼來源:debug.test.php

示例12: tearDown

 /**
  * tear down function
  *
  * @return void
  **/
 public function tearDown()
 {
     unset($this->View, $this->Controller);
     DebugKitDebugger::clearTimers();
 }
開發者ID:omusico,項目名稱:RentSquare,代碼行數:10,代碼來源:DebugViewTest.php

示例13: testGetTimers

 /**
  * test getting all the set timers.
  *
  * @return void
  **/
 function testGetTimers()
 {
     DebugKitDebugger::clearTimers();
     DebugKitDebugger::startTimer('test1', 'this is my first test');
     DebugKitDebugger::stopTimer('test1');
     usleep(50);
     DebugKitDebugger::startTimer('test2');
     DebugKitDebugger::stopTimer('test2');
     $timers = DebugKitDebugger::getTimers();
     $this->assertEqual(count($timers), 2);
     $this->assertTrue(is_float($timers['test1']['time']));
     $this->assertTrue(isset($timers['test1']['message']));
     $this->assertTrue(isset($timers['test2']['message']));
 }
開發者ID:afzet,項目名稱:cake-cart,代碼行數:19,代碼來源:debug_kit_debugger.test.php


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