Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eae8a80

Browse files
committed
fix test
1 parent ff1c52e commit eae8a80

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/Type/MoneyTypeTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ public function testDefaultModelType()
129129
$form = $this->factory->create(static::TESTED_TYPE, null, ['divisor' => 100]);
130130
$form->submit('12345.67');
131131

132-
$this->assertSame(1234567, $form->getData());
133-
$this->assertIsFloat($form->getData());
132+
$this->assertSame(1234567.0, $form->getData());
134133
}
135134

136135
public function testIntegerModelType()
@@ -139,6 +138,5 @@ public function testIntegerModelType()
139138
$form->submit('12345.67');
140139

141140
$this->assertSame(1234567, $form->getData());
142-
$this->assertIsInt($form->getData());
143141
}
144142
}

0 commit comments

Comments
 (0)