stop using void in test files

This commit is contained in:
Christian Flothmann 2021-01-05 16:52:18 +01:00
parent d4620a7d51
commit 8f9f370f07

View File

@ -77,7 +77,7 @@ class NumberTypeTest extends BaseTypeTest
$this->assertSame('12345,68', $form->createView()->vars['value']); $this->assertSame('12345,68', $form->createView()->vars['value']);
} }
public function testStringInputWithFloatData(): void public function testStringInputWithFloatData()
{ {
$this->expectException('Symfony\Component\Form\Exception\TransformationFailedException'); $this->expectException('Symfony\Component\Form\Exception\TransformationFailedException');
$this->expectExceptionMessage('Expected a numeric string.'); $this->expectExceptionMessage('Expected a numeric string.');
@ -88,7 +88,7 @@ class NumberTypeTest extends BaseTypeTest
]); ]);
} }
public function testStringInputWithIntData(): void public function testStringInputWithIntData()
{ {
$this->expectException('Symfony\Component\Form\Exception\TransformationFailedException'); $this->expectException('Symfony\Component\Form\Exception\TransformationFailedException');
$this->expectExceptionMessage('Expected a numeric string.'); $this->expectExceptionMessage('Expected a numeric string.');