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
PhpErrorCodeViewHelperTest.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Install\Tests\Unit\ViewHelpers\Format
;
3
20
class
PhpErrorCodeViewHelperTest
extends
\TYPO3\CMS\Core\Tests\UnitTestCase
{
21
25
protected
$viewHelper
;
26
30
public
function
setUp
() {
31
$this->viewHelper = $this->getMock(
'TYPO3\CMS\Install\ViewHelpers\Format\PhpErrorCodeViewHelper'
, array(
'dummy'
));
32
}
33
37
public
function
errorCodesDataProvider
() {
38
return
array(
39
array(
40
'errorCode'
=> E_ERROR,
41
'expectedString'
=>
'E_ERROR'
,
42
),
43
array(
44
'errorCode'
=> E_ALL,
45
'expectedString'
=>
'E_ALL'
,
46
),
47
array(
48
'errorCode'
=> E_ERROR ^ E_WARNING ^ E_PARSE,
49
'expectedString'
=>
'E_ERROR | E_WARNING | E_PARSE'
,
50
),
51
array(
52
'errorCode'
=> E_RECOVERABLE_ERROR ^ E_USER_DEPRECATED,
53
'expectedString'
=>
'E_RECOVERABLE_ERROR | E_USER_DEPRECATED'
,
54
)
55
);
56
}
57
64
public
function
renderPhpCodesCorrectly
($errorCode, $expectedString) {
65
$actualString = $this->viewHelper->render($errorCode);
66
$this->assertEquals($expectedString, $actualString);
67
}
68
69
}
TYPO3\CMS\Install\Tests\Unit\ViewHelpers\Format
Definition:
PhpErrorCodeViewHelperTest.php:2
TYPO3\CMS\Install\Tests\Unit\ViewHelpers\Format\PhpErrorCodeViewHelperTest\renderPhpCodesCorrectly
renderPhpCodesCorrectly($errorCode, $expectedString)
Definition:
PhpErrorCodeViewHelperTest.php:64
TYPO3\CMS\Install\Tests\Unit\ViewHelpers\Format\PhpErrorCodeViewHelperTest\errorCodesDataProvider
errorCodesDataProvider()
Definition:
PhpErrorCodeViewHelperTest.php:37
TYPO3\CMS\Install\Tests\Unit\ViewHelpers\Format\PhpErrorCodeViewHelperTest
Definition:
PhpErrorCodeViewHelperTest.php:20
TYPO3\CMS\Install\Tests\Unit\ViewHelpers\Format\PhpErrorCodeViewHelperTest\setUp
setUp()
Definition:
PhpErrorCodeViewHelperTest.php:30
TYPO3\CMS\Core\Tests\UnitTestCase
Definition:
UnitTestCase.php:26
TYPO3\CMS\Install\Tests\Unit\ViewHelpers\Format\PhpErrorCodeViewHelperTest\$viewHelper
$viewHelper
Definition:
PhpErrorCodeViewHelperTest.php:25
typo3
sysext
install
Tests
Unit
ViewHelpers
Format
PhpErrorCodeViewHelperTest.php
Generated on Wed Aug 7 2019 09:52:29 for TYPO3 CMS by
1.8.13