public function tearDown() { return; $this->_db->getConnection()->exec('DROP TABLE foo'); Channel\HttpHeaders::destroyInstance(); FirePhp\FirePhp::destroyInstance(); }
public function tearDown() { if (extension_loaded('pdo_sqlite')) { $this->_db->getConnection()->exec('DROP TABLE foo'); } Channel\HttpHeaders::destroyInstance(); FirePhp\FirePhp::destroyInstance(); }
/** * Test for ZF-3960 * * Zend_Log_Writer_Firebug should be automatically disabled when * run from the command line */ public function testZf3960() { Channel\HttpHeaders::destroyInstance(); FirePhp::destroyInstance(); $log = new Logger(); $writerFirebug = new FirebugWriter(); $log->addWriter($writerFirebug); $log->log('hi', 2); }
public function tearDown() { Channel\HttpHeaders::destroyInstance(); FirePhp::destroyInstance(); date_default_timezone_set($this->_originaltimezone); }
public function testHttpHeadersChannelSubclass() { $firephp = Channel\HttpHeaders::init('ZendTest\Wildfire\HttpHeadersChannel'); $this->assertEquals(get_class($firephp), 'ZendTest\Wildfire\HttpHeadersChannel'); Channel\HttpHeaders::destroyInstance(); try { Channel\HttpHeaders::init('ZendTest\Wildfire\Request'); $this->fail('Should not be able to initialize'); } catch (\Exception $e) { // success } $this->assertNull(Channel\HttpHeaders::getInstance(true)); try { Channel\HttpHeaders::init(array()); $this->fail('Should not be able to initialize'); } catch (\Exception $e) { // success } $this->assertNull(Channel\HttpHeaders::getInstance(true)); }
public function tearDown() { Channel\HttpHeaders::destroyInstance(); FirePhp::destroyInstance(); }