Esempio n. 1
0
 /**
  * Set the value of a particular field
  *
  * @param string $field The field's name
  * @param mixed $value Its new value
  * @static 
  */
 public static function populateField($field, $value)
 {
     return \Former\Former::populateField($field, $value);
 }
Esempio n. 2
0
 public function testPopulateWithSpecificValue()
 {
     Former::populate(array('foo' => 'bar'));
     Former::populateField('foo', 'foo');
     $populate = Former::text('foo')->__toString();
     $matcher = $this->cg('<input type="text" name="foo" value="foo" id="foo">');
     $this->assertEquals($matcher, $populate);
 }