Пример #1
0
 public function testLogThrough__callThrowsOnBadLogLevel()
 {
     $logger = new Horde_Log_Logger($this->handler);
     try {
         $logger->nonexistantLevel('');
         $this->fail();
     } catch (Exception $e) {
         $this->assertInstanceOf('Horde_Log_Exception', $e);
         $this->assertRegExp('/bad log level/i', $e->getMessage());
     }
 }