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


PHP Zend_Wildfire_Plugin_FirePhp::destroyInstance方法代碼示例

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


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

示例1: tearDown

 public function tearDown()
 {
     if (extension_loaded('pdo_sqlite')) {
         $this->_db->getConnection()->exec('DROP TABLE foo');
     }
     Zend_Wildfire_Channel_HttpHeaders::destroyInstance();
     Zend_Wildfire_Plugin_FirePhp::destroyInstance();
 }
開發者ID:sasezaki,項目名稱:mirror-zf1-tests,代碼行數:8,代碼來源:FirebugTest.php

示例2: testZf3960

 /**
  * Test for ZF-3960
  *
  * Zend_Log_Writer_Firebug should be automatically disabled when
  * run from the command line
  */
 public function testZf3960()
 {
     Zend_Wildfire_Channel_HttpHeaders::destroyInstance();
     Zend_Wildfire_Plugin_FirePhp::destroyInstance();
     $log = new Zend_Log();
     $writerFirebug = new Zend_Log_Writer_Firebug();
     $log->addWriter($writerFirebug);
     $log->log('hi', 2);
 }
開發者ID:rexmac,項目名稱:zf2,代碼行數:15,代碼來源:FirebugTest.php

示例3: tearDown

 public function tearDown()
 {
     if (extension_loaded('pdo_sqlite') && class_exists('Doctrine_Core')) {
         Doctrine_Manager::connection()->getDbh()->exec('DROP TABLE accounts');
     }
     // unregister doctrine namespace
     Zend_Loader_Autoloader::getInstance()->unregisterNamespace('Doctrine_');
     Zend_Wildfire_Channel_HttpHeaders::destroyInstance();
     Zend_Wildfire_Plugin_FirePhp::destroyInstance();
 }
開發者ID:JellyBellyDev,項目名稱:zle,代碼行數:10,代碼來源:DoctrineProfilerFirebugTest.php

示例4: testFirePhpPluginSubclass

 public function testFirePhpPluginSubclass()
 {
     $firephp = Zend_Wildfire_Plugin_FirePhp::init('Zend_Wildfire_WildfireTest_FirePhpPlugin');
     $this->assertEquals(get_class($firephp), 'Zend_Wildfire_WildfireTest_FirePhpPlugin');
     Zend_Wildfire_Plugin_FirePhp::destroyInstance();
     try {
         Zend_Wildfire_Plugin_FirePhp::init('Zend_Wildfire_WildfireTest_Request');
         $this->fail('Should not be able to initialize');
     } catch (Exception $e) {
         // success
     }
     $this->assertNull(Zend_Wildfire_Plugin_FirePhp::getInstance(true));
     try {
         Zend_Wildfire_Plugin_FirePhp::init(array());
         $this->fail('Should not be able to initialize');
     } catch (Exception $e) {
         // success
     }
     $this->assertNull(Zend_Wildfire_Plugin_FirePhp::getInstance(true));
 }
開發者ID:ThorstenSuckow,項目名稱:conjoon,代碼行數:20,代碼來源:WildfireTest.php

示例5: tearDown

 public function tearDown()
 {
     $this->_db->getConnection()->exec('DROP TABLE foo');
     Zend_Wildfire_Channel_HttpHeaders::destroyInstance();
     Zend_Wildfire_Plugin_FirePhp::destroyInstance();
 }
開發者ID:lortnus,項目名稱:zf1,代碼行數:6,代碼來源:FirebugTest.php


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