mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 06:06:40 +02:00
Add @covers annotations
This commit is contained in:
@@ -16,6 +16,9 @@ use Monolog\TestCase;
|
|||||||
|
|
||||||
class JsonFormatterTest extends TestCase
|
class JsonFormatterTest extends TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @covers Monolog\Formatter\JsonFormatter::format
|
||||||
|
*/
|
||||||
public function testFormat()
|
public function testFormat()
|
||||||
{
|
{
|
||||||
$formatter = new JsonFormatter();
|
$formatter = new JsonFormatter();
|
||||||
@@ -23,6 +26,9 @@ class JsonFormatterTest extends TestCase
|
|||||||
$this->assertEquals(json_encode($record), $formatter->format($record));
|
$this->assertEquals(json_encode($record), $formatter->format($record));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @covers Monolog\Formatter\JsonFormatter::formatBatch
|
||||||
|
*/
|
||||||
public function testFormatBatch()
|
public function testFormatBatch()
|
||||||
{
|
{
|
||||||
$formatter = new JsonFormatter();
|
$formatter = new JsonFormatter();
|
||||||
|
@@ -13,6 +13,9 @@ namespace Monolog\Formatter;
|
|||||||
|
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @covers Monolog\Formatter\LineFormatter
|
||||||
|
*/
|
||||||
class LineFormatterTest extends \PHPUnit_Framework_TestCase
|
class LineFormatterTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function testDefFormatWithString()
|
public function testDefFormatWithString()
|
||||||
|
@@ -15,6 +15,9 @@ use Monolog\Logger;
|
|||||||
|
|
||||||
class WildfireFormatterTest extends \PHPUnit_Framework_TestCase
|
class WildfireFormatterTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @covers Monolog\Formatter\WildfireFormatter::format
|
||||||
|
*/
|
||||||
public function testDefaultFormatIsLineFormatterWithoutNewLine()
|
public function testDefaultFormatIsLineFormatterWithoutNewLine()
|
||||||
{
|
{
|
||||||
$wildfire = new WildfireFormatter();
|
$wildfire = new WildfireFormatter();
|
||||||
|
Reference in New Issue
Block a user