47 $tester = new \Acme\Tester;
48 $tester->test(
$handler, $this->getRecord());
49 list($record) =
$handler->getRecords();
50 $this->assertEquals(__FILE__, $record[
'extra'][
'file']);
51 $this->assertEquals(18, $record[
'extra'][
'line']);
52 $this->assertEquals(
'Acme\Tester', $record[
'extra'][
'class']);
53 $this->assertEquals(
'test', $record[
'extra'][
'function']);
60 list($record) =
$handler->getRecords();
61 $this->assertEquals(__FILE__, $record[
'extra'][
'file']);
62 $this->assertEquals(24, $record[
'extra'][
'line']);
63 $this->assertEquals(null, $record[
'extra'][
'class']);
64 $this->assertEquals(
'Acme\tester', $record[
'extra'][
'function']);
77 $actual = $processor($input);
79 $this->assertEquals($expected, $actual);
85 'level' => Logger::CRITICAL,
90 $expected[
'extra'] =
array(
93 'class' =>
'ReflectionMethod',
94 'function' =>
'invokeArgs',
98 $actual = $processor($input);
100 $this->assertEquals($expected, $actual);
106 'level' => Logger::EMERGENCY,
111 $expected[
'extra'] =
array(
114 'class' =>
'ReflectionMethod',
115 'function' =>
'invokeArgs',
119 $actual = $processor($input);
121 $this->assertEquals($expected, $actual);
Injects line/file:class/function where the log message came from.
Create styles array
The data for the language used.
tester($handler, $record)
Used for testing purposes.