Пример #1
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);
 }
Пример #2
0
 public function tearDown()
 {
     Channel\HttpHeaders::destroyInstance();
     FirePhp::destroyInstance();
     date_default_timezone_set($this->_originaltimezone);
 }
Пример #3
0
    public function testFirePhpPluginSubclass()
    {

        $firephp = FirePhp::init('ZendTest\Wildfire\FirePhpPlugin');

        $this->assertEquals(get_class($firephp),
                            'ZendTest\Wildfire\FirePhpPlugin');

        FirePhp::destroyInstance();

        try {
            FirePhp::init('ZendTest\Wildfire\Request');
            $this->fail('Should not be able to initialize');
        } catch (\Exception $e) {
            // success
        }

        $this->assertNull(FirePhp::getInstance(true));

        try {
            FirePhp::init(array());
            $this->fail('Should not be able to initialize');
        } catch (\Exception $e) {
            // success
        }

        $this->assertNull(FirePhp::getInstance(true));
    }
Пример #4
0
 public function tearDown()
 {
     Channel\HttpHeaders::destroyInstance();
     FirePhp::destroyInstance();
 }