Skip to content

Commit 0bb5729

Browse files
committed
Add testBindNumber test case
1 parent a09c1e1 commit 0bb5729

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/BindingTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ public function testBindTextWithIntegerZero()
5050
$this->assertEquals($expected, $result);
5151
}
5252

53+
public function testBindNumber()
54+
{
55+
$object = $this->getStubObject();
56+
$this->form->bind($object);
57+
58+
$expected = '<input type="number" name="number" value="0">';
59+
$result = (string) $this->form->number('number');
60+
$this->assertEquals($expected, $result);
61+
}
62+
5363
public function testBindDate()
5464
{
5565
$object = $this->getStubObject();

0 commit comments

Comments
 (0)