repo.or.cz
/
mediawiki.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix DatabaseSqlite IDEA warnings
[mediawiki.git]
/
tests
/
phpunit
/
includes
/
api
/
MockApi.php
blob
d7db538273fbcf8986504a804cce05874ead9499
1
<
?php
2
3
class
MockApi
extends
ApiBase
{
4
public
$warnings
= [];
5
6
public function
execute
() {
7
}
8
9
public function
__construct
() {
10
}
11
12
public function
setWarning
(
$warning
) {
13
$this
->
warnings
[] =
$warning
;
14
}
15
16
public function
getAllowedParams
() {
17
return
[
18
'filename'
=>
null
,
19
'enablechunks'
=>
false
,
20
'sessionkey'
=>
null
,
21
];
22
}
23
}