コード例 #1
0
 public function testExists()
 {
     $m1 = new Money();
     $this->assertFalse($m1->exists());
     $m2 = new Money();
     $m2->setValue(array('Currency' => 'EUR', 'Amount' => 3.44));
     $this->assertTrue($m2->exists());
     $m3 = new Money();
     $m3->setValue(array('Currency' => 'EUR', 'Amount' => 0));
     $this->assertTrue($m3->exists());
 }
コード例 #2
0
 /**
  * Determines if any of the properties in this field have a value,
  * meaning at least one of them is not NULL.
  * 
  * @return boolean
  * 
  * @author Sebastian Diel <*****@*****.**>
  * @since 13.02.2013
  */
 public function exists()
 {
     return parent::exists();
 }