Exemplo n.º 1
0
 /**
  * Compare if the value and type is equal
  *
  * @param  Zend_Measure_Lightness  $object  Lightness object to compare
  * @return boolean
  */
 public function equals($object)
 {
     if ($object->toString() == $this->toString()) {
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
 /**
  * test toString
  * expected string
  */
 public function testLightnessToString()
 {
     $value = new Zend_Measure_Lightness('-100', Zend_Measure_Lightness::STANDARD, 'de');
     $this->assertEquals('-100 cd/m²', $value->toString(), 'Value -100 cd/m² expected');
 }