/** * @covers MediaAlchemyst\Specification\Image::setResolution * @covers MediaAlchemyst\Specification\Image::getResolutionUnit * @covers MediaAlchemyst\Specification\Image::getResolutionX * @covers MediaAlchemyst\Specification\Image::getResolutionY */ public function testSetResolution() { $this->object->setResolution(60, 80, Image::RESOLUTION_PIXELPERINCH); $this->assertEquals(60, $this->object->getResolutionX()); $this->assertEquals(80, $this->object->getResolutionY()); $this->assertEquals(Image::RESOLUTION_PIXELPERINCH, $this->object->getResolutionUnit()); $this->object->setResolution(70, 90, Image::RESOLUTION_PIXELPERCENTIMETER); $this->assertEquals(70, $this->object->getResolutionX()); $this->assertEquals(90, $this->object->getResolutionY()); $this->assertEquals(Image::RESOLUTION_PIXELPERCENTIMETER, $this->object->getResolutionUnit()); }