public function testEncodeTypoScriptArray(array $input, $expected) { $instance = new BackendLayoutDataProvider(); $result = $this->callInaccessibleMethod($instance, 'encodeTypoScriptArray', $input); $this->assertEquals($expected, $result); }