1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 21:56:31 +02:00

Add @covers annotations

This commit is contained in:
Jordi Boggiano
2011-07-20 00:04:49 +02:00
parent f9f27ce43f
commit 2bf653b39c
3 changed files with 12 additions and 0 deletions

View File

@@ -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();

View File

@@ -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()

View File

@@ -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();