minor #39541 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
-------

f126cf1304 Remove void return type from test methods
This commit is contained in:
Fabien Potencier 2020-12-18 08:15:38 +01:00
commit a71912dbe5
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ class AddSecurityVotersPassTest extends TestCase
$this->assertCount(4, $refs);
}
public function testThatVotersAreTraceableInDebugMode(): void
public function testThatVotersAreTraceableInDebugMode()
{
$container = new ContainerBuilder();
@ -103,7 +103,7 @@ class AddSecurityVotersPassTest extends TestCase
$this->assertCount(2, $voters, 'Incorrect count of voters');
}
public function testThatVotersAreNotTraceableWithoutDebugMode(): void
public function testThatVotersAreNotTraceableWithoutDebugMode()
{
$container = new ContainerBuilder();
$container->setParameter('kernel.debug', false);

View File

@ -19,7 +19,7 @@ use Twig\Environment;
class ExceptionListenerPassTest extends TestCase
{
public function testExitsWhenTwigIsNotAvailable(): void
public function testExitsWhenTwigIsNotAvailable()
{
$builder = new ContainerBuilder();
$builder->register('exception_listener', ExceptionListener::class);