mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-30 18:00:17 +02:00
CS fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user