Esempio n. 1
0
 /**
  * @test
  */
 public function aspectRatioReturnedCorrectlyForPortraitImage()
 {
     $this->image->_set('width', 320);
     $this->image->_set('height', 480);
     $this->assertEquals(1.5, $this->image->getAspectRatio());
     $this->assertEquals(1.5, $this->image->getAspectRatio(FALSE));
     $this->assertEquals(0.6667, round($this->image->getAspectRatio(TRUE), 4));
 }