/** * writeTestImage * * @param ImageDriverInterface $driver * @access protected * @return string */ protected function writeTestImage(DriverInterface $driver) { $f = tempnam(sys_get_temp_dir(), 'target_jit_'); file_put_contents($f, $driver->getImageBlob()); $this->testFile = $f; return $f; }
/** * {@inheritDoc} */ public function getContents() { return $this->driver->getImageBlob(); }