public function testFormatsLabels() { $labels = ['test' => 'label']; $expected = [['key' => key($labels), 'value' => current($labels)]]; $this->assertEquals($expected, $this->implementation->call('formatLabelsForApi', [$labels])); }