Example #1
0
 public function testLogThrough__callThrowsOnBadLogPriority()
 {
     $logger = new Zend_Log($this->writer);
     try {
         $logger->nonexistantPriority('');
         $this->fail();
     } catch (Exception $e) {
         $this->assertTrue($e instanceof Zend_Log_Exception);
         $this->assertRegExp('/bad log priority/i', $e->getMessage());
     }
 }