1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-30 18:00:17 +02:00
This commit is contained in:
Jordi Boggiano
2012-06-14 15:46:17 +02:00
parent 1530322897
commit da33c84d07
46 changed files with 193 additions and 206 deletions

View File

@@ -21,6 +21,7 @@ class IntrospectionProcessorTest extends TestCase
$processor = new IntrospectionProcessor();
$handler = new TestHandler();
$handler->pushProcessor($processor);
return $handler;
}
@@ -31,7 +32,7 @@ class IntrospectionProcessorTest extends TestCase
$tester->test($handler, $this->getRecord());
list($record) = $handler->getRecords();
$this->assertEquals(__FILE__, $record['extra']['file']);
$this->assertEquals(57, $record['extra']['line']);
$this->assertEquals(58, $record['extra']['line']);
$this->assertEquals('Acme\Tester', $record['extra']['class']);
$this->assertEquals('test', $record['extra']['function']);
}
@@ -42,7 +43,7 @@ class IntrospectionProcessorTest extends TestCase
\Acme\tester($handler, $this->getRecord());
list($record) = $handler->getRecords();
$this->assertEquals(__FILE__, $record['extra']['file']);
$this->assertEquals(63, $record['extra']['line']);
$this->assertEquals(64, $record['extra']['line']);
$this->assertEquals(null, $record['extra']['class']);
$this->assertEquals('Acme\tester', $record['extra']['function']);
}
@@ -52,7 +53,7 @@ namespace Acme;
class Tester
{
function test($handler, $record)
public function test($handler, $record)
{
$handler->handle($record);
}
@@ -61,4 +62,4 @@ class Tester
function tester($handler, $record)
{
$handler->handle($record);
}
}