Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7420904
ApiFormatNoneTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ApiFormatNoneTest.php
View Options
<?php
namespace
MediaWiki\Tests\Api\Format
;
use
MediaWiki\Api\ApiResult
;
/**
* @group API
* @covers \MediaWiki\Api\ApiFormatNone
*/
class
ApiFormatNoneTest
extends
ApiFormatTestBase
{
/** @inheritDoc */
protected
$printerName
=
'none'
;
public
static
function
provideGeneralEncoding
()
{
return
[
// Basic types
[
[
null
],
''
],
[
[
true
],
''
],
[
[
false
],
''
],
[
[
42
],
''
],
[
[
42.5
],
''
],
[
[
1e42
],
''
],
[
[
'foo'
],
''
],
[
[
'fóo'
],
''
],
// Arrays and objects
[
[
[]
],
''
],
[
[
[
1
]
],
''
],
[
[
[
'x'
=>
1
]
],
''
],
[
[
[
2
=>
1
]
],
''
],
[
[
(
object
)[]
],
''
],
[
[
[
1
,
ApiResult
::
META_TYPE
=>
'assoc'
]
],
''
],
[
[
[
'x'
=>
1
,
ApiResult
::
META_TYPE
=>
'array'
]
],
''
],
[
[
[
'x'
=>
1
,
ApiResult
::
META_TYPE
=>
'kvp'
]
],
''
],
[
[
[
'x'
=>
1
,
ApiResult
::
META_TYPE
=>
'BCkvp'
,
ApiResult
::
META_KVP_KEY_NAME
=>
'key'
]
],
''
],
[
[
[
'x'
=>
1
,
ApiResult
::
META_TYPE
=>
'BCarray'
]
],
''
],
[
[
[
'a'
,
'b'
,
ApiResult
::
META_TYPE
=>
'BCassoc'
]
],
''
],
// Content
[
[
'*'
=>
'foo'
],
''
],
// BC Subelements
[
[
'foo'
=>
'foo'
,
ApiResult
::
META_BC_SUBELEMENTS
=>
[
'foo'
]
],
''
],
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 05:11 (1 d, 3 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
12/93/ff5cd1ec959ff8d7d9e1e9402e52
Default Alt Text
ApiFormatNoneTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment