public function setUp() { parent::setUp(); $this->path = '/tmp/imageloadertest/'; if (!is_dir($this->path)) { mkdir($this->path); } $this->object = new ImageLoader($this->em, $this->path); $image = imagecreate(500, 500); $color = imagecolorallocate($image, 200, 100, 100); imagefilledrectangle($image, 0, 0, 100, 100, $color); imagejpeg($image, '/tmp/testimage'); $_FILES['image']['tmp_name'] = '/tmp/testimage'; }
public function setUp() { parent::setUp(); $this->object = new Users($this->em); }
public function setUp() { parent::setUp(); /** @var Sticks\Beans\Stickers $this->object */ $this->object = new Stickers($this->em); }