TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
WebProcessorTest.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Core\Tests\Unit\Log\Processor
;
3
23
class
WebProcessorTest
extends
\TYPO3\CMS\Core\Tests\UnitTestCase
{
24
28
public
function
webProcessorAddsWebDataToLogRecord
() {
29
$environmentVariables =
\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv
(
'_ARRAY'
);
30
$logRecord = new \TYPO3\CMS\Core\Log\LogRecord(
'test.core.log'
, \
TYPO3
\CMS\Core\Log\LogLevel::DEBUG,
'test'
);
31
$processor = new \TYPO3\CMS\Core\Log\Processor\WebProcessor();
32
$logRecord = $processor->processLogRecord($logRecord);
33
foreach
($environmentVariables as $key => $value) {
34
$this->assertEquals($value, $logRecord[
'data'
][$key]);
35
}
36
}
37
38
}
TYPO3
TYPO3\CMS\Core\Tests\Unit\Log\Processor\WebProcessorTest\webProcessorAddsWebDataToLogRecord
webProcessorAddsWebDataToLogRecord()
Definition:
WebProcessorTest.php:28
TYPO3\CMS\Core\Tests\Unit\Log\Processor\WebProcessorTest
Definition:
WebProcessorTest.php:23
TYPO3\CMS\Core\Tests\Unit\Log\Processor
Definition:
AbstractMemoryTest.php:2
TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv
static getIndpEnv($getEnvName)
Definition:
GeneralUtility.php:3368
TYPO3\CMS\Core\Tests\UnitTestCase
Definition:
UnitTestCase.php:26
typo3
sysext
core
Tests
Unit
Log
Processor
WebProcessorTest.php
Generated on Wed Aug 7 2019 09:52:23 for TYPO3 CMS by
1.8.13