Beispiel #1
0
 public function testSetProperties()
 {
     $object = new \Foundation\Form();
     $value = uniqid();
     foreach ($object->getAttributes() as $memberName => $htmlName) {
         $set = 'set' . ucfirst($memberName);
         $object->{$set}($value);
     }
     foreach ($object->getAttributes() as $memberName => $htmlName) {
         $get = 'get' . ucfirst($memberName);
         $this->assertEquals($value, $object->{$get}(), "Wrong value for {$memberName}");
     }
 }