public function testRenderNumberInput() { $age = new Number('age'); $expected = '<input type="number" name="age">'; $result = $age->render(); $this->assertEquals($expected, $result); }
public function number($name) { $number = new Number($name); if (!is_null($value = $this->getValueFor($name))) { $number->value($value); } return $number; }