/** * @dataProvider providerPath * @param array $options */ public function testSetPixel(array $options) { $options['path'] = $this->getDataPath($options['path']); $image = new Image($options); $expectedPixel = array('red' => 100, 'green' => 0, 'blue' => 10, 'alpha' => 0); $image->setPixel(0, 0, $expectedPixel); $dataPixel = $image->getIterator()->current(); $actualPixel = $image->getDecimalColor($dataPixel['color']); $this->assertEquals($expectedPixel, $actualPixel); }