コード例 #1
0
ファイル: ImageValidatorTest.php プロジェクト: ayoah/symfony
 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';
 }
コード例 #2
0
ファイル: FileValidatorTest.php プロジェクト: ayoah/symfony
 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;
 }