示例#1
0
文件: FileTest.php 项目: clarkf/hitch
 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);
 }
示例#2
0
文件: GDTest.php 项目: clarkf/hitch
 public function setup()
 {
     parent::setup();
     $this->image = new GDImage(__DIR__ . "/fixtures/image.png");
 }