/** * @param $attributeName * @param $attributeValue * @param $expectedClass * @dataProvider getChartAttributesConversionTestValues */ public function testGetChartAttributesConvertsToExpectedObjects($attributeName, $attributeValue, $expectedClass) { $query = new ChartQuery(); $query->setChartAttributes(array($attributeName => $attributeValue)); $converted = $query->getChartAttributes(); $this->assertInstanceOf($expectedClass, $converted[$attributeName]); }