Skip to content

Commit 4b47997

Browse files
committed
Remove void return type from test methods
1 parent b5730bd commit 4b47997

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Tests/Extension/Core/DataTransformer/StringToFloatTransformerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ public function provideTransformations(): array
3030
/**
3131
* @dataProvider provideTransformations
3232
*/
33-
public function testTransform($from, $to): void
33+
public function testTransform($from, $to)
3434
{
3535
$transformer = new StringToFloatTransformer();
3636

3737
$this->assertSame($to, $transformer->transform($from));
3838
}
3939

40-
public function testFailIfTransformingANonString(): void
40+
public function testFailIfTransformingANonString()
4141
{
4242
$this->expectException('Symfony\Component\Form\Exception\TransformationFailedException');
4343
$transformer = new StringToFloatTransformer();
4444
$transformer->transform(1.0);
4545
}
4646

47-
public function testFailIfTransformingANonNumericString(): void
47+
public function testFailIfTransformingANonNumericString()
4848
{
4949
$this->expectException('Symfony\Component\Form\Exception\TransformationFailedException');
5050
$transformer = new StringToFloatTransformer();
@@ -70,14 +70,14 @@ public function provideReverseTransformations(): array
7070
/**
7171
* @dataProvider provideReverseTransformations
7272
*/
73-
public function testReverseTransform($from, $to, int $scale = null): void
73+
public function testReverseTransform($from, $to, int $scale = null)
7474
{
7575
$transformer = new StringToFloatTransformer($scale);
7676

7777
$this->assertSame($to, $transformer->reverseTransform($from));
7878
}
7979

80-
public function testFailIfReverseTransformingANonNumeric(): void
80+
public function testFailIfReverseTransformingANonNumeric()
8181
{
8282
$this->expectException('Symfony\Component\Form\Exception\TransformationFailedException');
8383
$transformer = new StringToFloatTransformer();

Tests/Extension/Core/Type/NumberTypeTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,39 +37,39 @@ protected function tearDown(): void
3737
\Locale::setDefault($this->defaultLocale);
3838
}
3939

40-
public function testDefaultFormatting(): void
40+
public function testDefaultFormatting()
4141
{
4242
$form = $this->factory->create(static::TESTED_TYPE);
4343
$form->setData('12345.67890');
4444

4545
$this->assertSame('12345,679', $form->createView()->vars['value']);
4646
}
4747

48-
public function testDefaultFormattingWithGrouping(): void
48+
public function testDefaultFormattingWithGrouping()
4949
{
5050
$form = $this->factory->create(static::TESTED_TYPE, null, ['grouping' => true]);
5151
$form->setData('12345.67890');
5252

5353
$this->assertSame('12.345,679', $form->createView()->vars['value']);
5454
}
5555

56-
public function testDefaultFormattingWithScale(): void
56+
public function testDefaultFormattingWithScale()
5757
{
5858
$form = $this->factory->create(static::TESTED_TYPE, null, ['scale' => 2]);
5959
$form->setData('12345.67890');
6060

6161
$this->assertSame('12345,68', $form->createView()->vars['value']);
6262
}
6363

64-
public function testDefaultFormattingWithScaleFloat(): void
64+
public function testDefaultFormattingWithScaleFloat()
6565
{
6666
$form = $this->factory->create(static::TESTED_TYPE, null, ['scale' => 2]);
6767
$form->setData(12345.67890);
6868

6969
$this->assertSame('12345,68', $form->createView()->vars['value']);
7070
}
7171

72-
public function testDefaultFormattingWithScaleAndStringInput(): void
72+
public function testDefaultFormattingWithScaleAndStringInput()
7373
{
7474
$form = $this->factory->create(static::TESTED_TYPE, null, ['scale' => 2, 'input' => 'string']);
7575
$form->setData('12345.67890');

0 commit comments

Comments
 (0)