1
0
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:
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
{
/**
* @covers Monolog\Formatter\JsonFormatter::format
*/
public function testFormat()
{
$formatter = new JsonFormatter();
@@ -23,6 +26,9 @@ class JsonFormatterTest extends TestCase
$this->assertEquals(json_encode($record), $formatter->format($record));
}
/**
* @covers Monolog\Formatter\JsonFormatter::formatBatch
*/
public function testFormatBatch()
{
$formatter = new JsonFormatter();

View File

@@ -13,6 +13,9 @@ namespace Monolog\Formatter;
use Monolog\Logger;
/**
* @covers Monolog\Formatter\LineFormatter
*/
class LineFormatterTest extends \PHPUnit_Framework_TestCase
{
public function testDefFormatWithString()

View File

@@ -15,6 +15,9 @@ use Monolog\Logger;
class WildfireFormatterTest extends \PHPUnit_Framework_TestCase
{
/**
* @covers Monolog\Formatter\WildfireFormatter::format
*/
public function testDefaultFormatIsLineFormatterWithoutNewLine()
{
$wildfire = new WildfireFormatter();