/** * @param array $array * @param integer|boolean $count * @param string $expected * @dataProvider providerOutputArray */ public function testOutputArray(array $array, $count, $expected) { $result = $this->processor->outputArray($array, $count); $this->assertEquals($expected, $result, 'modProcessor->outputArray did not convert the array properly to JSON.'); }