FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
phpbb/tests/test_framework/phpbb_test_case.php at develop · Pico/phpbb · GitHub
Pico
/
phpbb
Public
forked from
phpbb/phpbb
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
phpbb
/
tests
/
test_framework
/
phpbb_test_case.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (41 loc) · 1.25 KB
Breadcrumbs
phpbb
/
tests
/
test_framework
/
phpbb_test_case.php
Copy path
File metadata and controls
47 lines (41 loc) · 1.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
class
phpbb_test_case
extends
PHPUnit_Framework_TestCase
{
protected
$
test_case_helpers
;
public
function
__construct
(
$
name
=
NULL
,
array
$
data
=
array
(),
$
dataName
=
''
)
{
parent
::
__construct
(
$
name
,
$
data
,
$
dataName
);
$
this
->
backupStaticAttributesBlacklist
+=
array
(
'
PHP_CodeCoverage
'
=>
array
(
'
instance
'
),
'
PHP_CodeCoverage_Filter
'
=>
array
(
'
instance
'
),
'
PHP_CodeCoverage_Util
'
=>
array
(
'
ignoredLines
'
,
'
templateMethods
'
),
'
PHP_Timer
'
=>
array
(
'
startTimes
'
,),
'
PHP_Token_Stream
'
=>
array
(
'
customTokens
'
),
'
PHP_Token_Stream_CachingFactory
'
=>
array
(
'
cache
'
),
'
phpbb_database_test_case
'
=>
array
(
'
already_connected
'
),
);
}
public
function
get_test_case_helpers
()
{
if
(!
$
this
->
test_case_helpers
)
{
$
this
->
test_case_helpers
=
new
phpbb_test_case_helpers
(
$
this
);
}
return
$
this
->
test_case_helpers
;
}
public
function
setExpectedTriggerError
(
$
errno
,
$
message
=
''
)
{
$
this
->
get_test_case_helpers
()->
setExpectedTriggerError
(
$
errno
,
$
message
);
}
}
Back
|
FazBrowse Home
|
New Git URL