Exemple #1
0
 public function testSetOpacity()
 {
     $this->assertEquals(50, $this->alpha->getOpacity());
     $this->assertEquals(0.5, $this->alpha->getValue());
     $opacity = 30;
     $this->alpha->setOpacity($opacity);
     $this->assertEquals($opacity, $this->alpha->getOpacity());
     $this->assertEquals(0.3, $this->alpha->getValue());
 }
Exemple #2
0
 /**
  * Returns alpha
  * 
  * @return integer 
  */
 public function getAlpha()
 {
     return $this->alpha->getOpacity();
 }