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

Skip to content

Remove void return type from test methods #39459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Symfony/Bridge/Twig/Tests/Mime/BodyRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

class BodyRendererTest extends TestCase
{
public function testRenderTextOnly(): void
public function testRenderTextOnly()
{
$email = $this->prepareEmail('Text', null);
$this->assertEquals('Text', $email->getBody()->bodyToString());
}

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

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

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

public function testRenderWithContextReservedEmailEntry(): void
public function testRenderWithContextReservedEmailEntry()
{
$this->expectException(InvalidArgumentException::class);
$this->prepareEmail('Text', '', ['email' => 'reserved!']);
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Tests/KernelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ public function testKernelStartTimeIsResetWhileBootingAlreadyBootedKernel()
$this->assertGreaterThan($preReBoot, $kernel->getStartTime());
}

public function testAnonymousKernelGeneratesValidContainerClass(): void
public function testAnonymousKernelGeneratesValidContainerClass()
{
$kernel = new class('test', true) extends Kernel {
public function registerBundles(): iterable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public function constructorTypesProvider(): array
/**
* @requires PHP 7.4
*/
public function testTypedProperties(): void
public function testTypedProperties()
{
$this->assertEquals([new Type(Type::BUILTIN_TYPE_OBJECT, false, Dummy::class)], $this->extractor->getTypes(Php74Dummy::class, 'dummy'));
$this->assertEquals([new Type(Type::BUILTIN_TYPE_BOOL, true)], $this->extractor->getTypes(Php74Dummy::class, 'nullableBoolProp'));
Expand Down