Skip to content

Commit

Permalink
Fix broken test in php 5.5
Browse files Browse the repository at this point in the history
Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
  • Loading branch information
feryardiant committed Dec 5, 2015
1 parent 84705ba commit 013b300
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/TestCase.php
Expand Up @@ -20,7 +20,7 @@ abstract class TestCase extends PHPUnit_Framework_TestCase
protected $settings = [
'basename' => 'slim-monolog-app',
'logger' => [
'directory' => __DIR__.'/logs',
'directory' => '',
'filename' => 'app',
'level' => '',
'handlers' => [],
Expand All @@ -29,6 +29,7 @@ abstract class TestCase extends PHPUnit_Framework_TestCase

public function setUp()
{
$this->settings['logger']['directory'] = __DIR__.'/logs';
$this->logger = new Monolog($this->settings['basename'], $this->settings['logger']);
}
}

0 comments on commit 013b300

Please sign in to comment.