コード例 #1
0
 /**
  * @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());
 }
コード例 #2
0
 /**
  * Render image
  * raw image stream will be outputted directly
  */
 public function renderImage()
 {
     imagepng($this->image->getImage());
 }