Ejemplo n.º 1
0
 public function setup()
 {
     parent::setup();
     $this->materializer = m::mock("Hitch\\MaterializationInterface");
     $this->image = new GDImage(__DIR__ . "/../Modification/fixtures/image.png");
     $this->image->setResource(imagecreatetruecolor(1, 1));
     $this->path = tempnam(sys_get_temp_dir(), 'image_');
     $this->root = dirname($this->path);
     $this->filename = basename($this->path);
 }
Ejemplo n.º 2
0
 public function setup()
 {
     parent::setup();
     $this->image = new GDImage(__DIR__ . "/fixtures/image.png");
 }