Exemple #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->image = __DIR__ . '/Fixtures/test.gif';
     $this->imageLandscape = __DIR__ . '/Fixtures/test_landscape.gif';
     $this->imagePortrait = __DIR__ . '/Fixtures/test_portrait.gif';
     $this->image4By3 = __DIR__ . '/Fixtures/test_4by3.gif';
     $this->imageCorrupted = __DIR__ . '/Fixtures/test_corrupted.gif';
 }
Exemple #2
0
 protected function tearDown()
 {
     parent::tearDown();
     if (is_resource($this->file)) {
         fclose($this->file);
     }
     if (file_exists($this->path)) {
         unlink($this->path);
     }
     $this->path = null;
     $this->file = null;
 }