/** * @dataProvider providerSaveSuccess * @param array $options */ public function testSaveSuccess(array $options) { $options['path'] = $this->getDataPath($options['path']); $options['savePath'] = $this->getDataPath($options['savePath']) . '/save_success.png'; $image = new Image($options); $this->assertTrue($image->save()); }
/** * Render image * raw image stream will be outputted directly */ public function renderImage() { imagepng($this->image->getImage()); }