5 * @covers ApiFormatNone
7 class ApiFormatNoneTest
extends ApiFormatTestBase
{
9 protected $printerName = 'none';
11 public static function provideGeneralEncoding() {
26 [ [ [ 'x' => 1 ] ], '' ],
27 [ [ [ 2 => 1 ] ], '' ],
28 [ [ (object)[] ], '' ],
29 [ [ [ 1, ApiResult
::META_TYPE
=> 'assoc' ] ], '' ],
30 [ [ [ 'x' => 1, ApiResult
::META_TYPE
=> 'array' ] ], '' ],
31 [ [ [ 'x' => 1, ApiResult
::META_TYPE
=> 'kvp' ] ], '' ],
35 ApiResult
::META_TYPE
=> 'BCkvp',
36 ApiResult
::META_KVP_KEY_NAME
=> 'key'
40 [ [ [ 'x' => 1, ApiResult
::META_TYPE
=> 'BCarray' ] ], '' ],
41 [ [ [ 'a', 'b', ApiResult
::META_TYPE
=> 'BCassoc' ] ], '' ],
44 [ [ '*' => 'foo' ], '' ],
47 [ [ 'foo' => 'foo', ApiResult
::META_BC_SUBELEMENTS
=> [ 'foo' ] ], '' ],