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

Skip to content

Commit 8d6794f

Browse files
minor #39459 Remove void return type from test methods (OskarStark)
This PR was merged into the 4.4 branch. Discussion ---------- Remove void return type from test methods | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | --- | License | MIT | Doc PR | --- cc @nicolas-grekas Commits ------- 94f823f Remove void return type from test methods
2 parents 278688d + 94f823f commit 8d6794f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Symfony/Bridge/Twig/Tests/Mime/BodyRendererTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121

2222
class BodyRendererTest extends TestCase
2323
{
24-
public function testRenderTextOnly(): void
24+
public function testRenderTextOnly()
2525
{
2626
$email = $this->prepareEmail('Text', null);
2727
$this->assertEquals('Text', $email->getBody()->bodyToString());
2828
}
2929

30-
public function testRenderHtmlOnly(): void
30+
public function testRenderHtmlOnly()
3131
{
3232
$html = '<head>head</head><b>HTML</b><style type="text/css">css</style>';
3333
$email = $this->prepareEmail(null, $html);
@@ -37,7 +37,7 @@ public function testRenderHtmlOnly(): void
3737
$this->assertEquals(str_replace('=', '=3D', $html), $body->getParts()[1]->bodyToString());
3838
}
3939

40-
public function testRenderHtmlOnlyWithTextSet(): void
40+
public function testRenderHtmlOnlyWithTextSet()
4141
{
4242
$email = $this->prepareEmail(null, '<b>HTML</b>');
4343
$email->text('Text');
@@ -47,7 +47,7 @@ public function testRenderHtmlOnlyWithTextSet(): void
4747
$this->assertEquals('<b>HTML</b>', $body->getParts()[1]->bodyToString());
4848
}
4949

50-
public function testRenderTextAndHtml(): void
50+
public function testRenderTextAndHtml()
5151
{
5252
$email = $this->prepareEmail('Text', '<b>HTML</b>');
5353
$body = $email->getBody();
@@ -56,7 +56,7 @@ public function testRenderTextAndHtml(): void
5656
$this->assertEquals('<b>HTML</b>', $body->getParts()[1]->bodyToString());
5757
}
5858

59-
public function testRenderWithContextReservedEmailEntry(): void
59+
public function testRenderWithContextReservedEmailEntry()
6060
{
6161
$this->expectException(InvalidArgumentException::class);
6262
$this->prepareEmail('Text', '', ['email' => 'reserved!']);

src/Symfony/Component/HttpKernel/Tests/KernelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ public function testKernelStartTimeIsResetWhileBootingAlreadyBootedKernel()
663663
$this->assertGreaterThan($preReBoot, $kernel->getStartTime());
664664
}
665665

666-
public function testAnonymousKernelGeneratesValidContainerClass(): void
666+
public function testAnonymousKernelGeneratesValidContainerClass()
667667
{
668668
$kernel = new class('test', true) extends Kernel {
669669
public function registerBundles(): iterable

src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public function constructorTypesProvider(): array
396396
/**
397397
* @requires PHP 7.4
398398
*/
399-
public function testTypedProperties(): void
399+
public function testTypedProperties()
400400
{
401401
$this->assertEquals([new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)], $this->extractor->getTypes(Php74Dummy::class, 'dummy'));
402402
$this->assertEquals([new Type(Type::BUILTIN_TYPE_BOOL, true)], $this->extractor->getTypes(Php74Dummy::class, 'nullableBoolProp'));

0 commit comments

Comments
 (0)