/** * setUp * * @access protected * @return mixed */ protected function setUp() { if (!class_exists('\\Imagick')) { $this->markTestSkipped(); } parent::setUp(); $this->driver = new ImagickDriver($this->loaderMock); }
/** * @test * @dataProvider pixelLimitProvider */ public function testFilterPixelLimit($w, $h, $limit) { parent::testFilterPixelLimit($w, $h, $limit); $pxl = $this->pixelLimit($w, $h, $limit, $this->ratio($w, $h)); list($tw, $th) = getimagesize($this->writeTestImage($this->driver)); $this->assertSame(array_values($pxl), [$tw, $th]); }
/** * setUp * * @access protected * @return mixed */ protected function setUp() { parent::setUp(); $this->driver = new GdDriver($this->loaderMock); }