コード例 #1
0
ファイル: FirebugTest.php プロジェクト: hjr3/zf2
 public function tearDown()
 {
     return;
     $this->_db->getConnection()->exec('DROP TABLE foo');
     Channel\HttpHeaders::destroyInstance();
     FirePhp\FirePhp::destroyInstance();
 }
コード例 #2
0
ファイル: FirebugTest.php プロジェクト: heiglandreas/zf2
 public function tearDown()
 {
     if (extension_loaded('pdo_sqlite')) {
         $this->_db->getConnection()->exec('DROP TABLE foo');
     }
     Channel\HttpHeaders::destroyInstance();
     FirePhp\FirePhp::destroyInstance();
 }
コード例 #3
0
ファイル: FirebugTest.php プロジェクト: rafalwrzeszcz/zf2
 /**
  * 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);
 }
コード例 #4
0
ファイル: FirebugTest.php プロジェクト: rafalwrzeszcz/zf2
 public function tearDown()
 {
     Channel\HttpHeaders::destroyInstance();
     FirePhp::destroyInstance();
     date_default_timezone_set($this->_originaltimezone);
 }
コード例 #5
0
ファイル: WildfireTest.php プロジェクト: rkeplin/zf2
    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));
    }
コード例 #6
0
ファイル: FirebugTest.php プロジェクト: rexmac/zf2
 public function tearDown()
 {
     Channel\HttpHeaders::destroyInstance();
     FirePhp::destroyInstance();
 }