/** * Try to log something with an invalid numeric log level */ public function testLogInvalidStringLogLevel() { $this->setExpectedException('\\InvalidArgumentException'); $logger = new Logger('PHPUnit', array('filters' => array(), 'writers' => array(array('Stream' => array('url' => 'php://memory', 'filters' => array()))))); $logger->log('warn', 'Hallo'); }