1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00
This commit is contained in:
Jordi Boggiano
2014-12-29 20:46:15 +00:00
parent 5ce2b38b3b
commit d7b0a0a20b
4 changed files with 3 additions and 4 deletions

View File

@@ -11,7 +11,6 @@
namespace Monolog\Handler;
use Monolog\Formatter\FormatterInterface;
/**
* Sampling handler

View File

@@ -241,6 +241,7 @@ class TestStreamFoo
public function __toString()
{
fseek($this->resource, 0);
return $this->foo . ' - ' . (string) stream_get_contents($this->resource);
}
}

View File

@@ -39,7 +39,7 @@ class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
'foo' => 'string',
'bar' => 1,
'baz' => false,
'bam' => array(1,2,3),
'bam' => array(1, 2, 3),
'bat' => array('foo' => 'bar'),
'bap' => \DateTime::createFromFormat(\DateTime::ISO8601, '1970-01-01T00:00:00+0000'),
'ban' => $exception
@@ -49,7 +49,7 @@ class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
'foo' => 'string',
'bar' => 1,
'baz' => false,
'bam' => $this->encodeJson(array(1,2,3)),
'bam' => $this->encodeJson(array(1, 2, 3)),
'bat' => $this->encodeJson(array('foo' => 'bar')),
'bap' => '1970-01-01 00:00:00',
'ban' => $this->encodeJson(array(

View File

@@ -12,7 +12,6 @@
namespace Monolog\Handler;
use Monolog\TestCase;
use Monolog\Logger;
/**
* @covers Monolog\Handler\SamplingHandler::handle