Exemple #1
0
 public function tearDown()
 {
     return;
     $this->_db->getConnection()->exec('DROP TABLE foo');
     Channel\HttpHeaders::destroyInstance();
     FirePhp\FirePhp::destroyInstance();
 }
Exemple #2
0
 public function tearDown()
 {
     if (extension_loaded('pdo_sqlite')) {
         $this->_db->getConnection()->exec('DROP TABLE foo');
     }
     Channel\HttpHeaders::destroyInstance();
     FirePhp\FirePhp::destroyInstance();
 }
Exemple #3
0
 /**
  * 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);
 }
Exemple #4
0
 public function tearDown()
 {
     Channel\HttpHeaders::destroyInstance();
     FirePhp::destroyInstance();
     date_default_timezone_set($this->_originaltimezone);
 }
Exemple #5
0
    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));
    }
Exemple #6
0
 public function tearDown()
 {
     Channel\HttpHeaders::destroyInstance();
     FirePhp::destroyInstance();
 }