fix logger implementation and test
This commit is contained in:
parent
05ba9b3c64
commit
4a855be814
|
@ -154,6 +154,6 @@ class Log implements ILogger {
|
|||
$message = strtr($message, $replace);
|
||||
|
||||
$logger = $this->logger;
|
||||
$logger::write($app, $message, $level);
|
||||
call_user_func(array($logger, 'write'), $app, $message, $level);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ class Logger extends \PHPUnit_Framework_TestCase {
|
|||
|
||||
public function setUp() {
|
||||
self::$logs = array();
|
||||
$this->logger = new Log($this);
|
||||
$this->logger = new Log('Test\Logger');
|
||||
}
|
||||
|
||||
public function testInterpolation() {
|
||||
|
|
Loading…
Reference in New Issue