Finished Logger tests

This commit is contained in:
2019-04-17 01:29:57 +02:00
parent f7001060ea
commit 56b99ffff1
2 changed files with 34 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class Logger extends AbstractLogger
file_put_contents($this->file, $this->fillMessage($this->start . $this->exception, $context), FILE_APPEND);
}
if ($message === null && !isset($context["exception"])) {
throw new InvalidArgumentException("no exception nor message was found");
throw new InvalidArgumentException("Message and Exception not set");
}
}
}