Esempio n. 1
0
 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';
 }
Esempio n. 2
0
 public function setUp()
 {
     parent::setUp();
     $this->object = new Users($this->em);
 }
Esempio n. 3
0
 public function setUp()
 {
     parent::setUp();
     /** @var Sticks\Beans\Stickers $this->object  */
     $this->object = new Stickers($this->em);
 }