/** * The {@link LogFormatter} should not take a negative max level. * * @expectedException \InvalidArgumentException */ public function testBadMaxLevel() { $log = new LogFormatter(); $log->setMaxLevel(-1); }
/** * Set the messageLevel. * * @param int $messageLevel * @return GithubSync Returns `$this` for fluent calls. */ public function setMessageLevel($messageLevel) { $this->log->setMaxLevel($messageLevel); return $this; }