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