Skip to content

Commit 62dcf52

Browse files
authored
Merge pull request #600 from deguif/review-tests
Review tests
2 parents 5a9de1a + 765b7f1 commit 62dcf52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+138
-136
lines changed

Tests/DependencyInjection/Compiler/MountDumpersPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected function registerCompilerPass(ContainerBuilder $container): void
2323
/**
2424
* @test
2525
*/
26-
public function ifCompilerPassCollectsServicesByArgumentTheseWillExist()
26+
public function ifCompilerPassCollectsServicesByArgumentTheseWillExist(): void
2727
{
2828
$collectingService = new Definition();
2929
$this->setDefinition('jms_translation.file_writer', $collectingService);

Tests/DependencyInjection/Compiler/MountExtractorsPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected function registerCompilerPass(ContainerBuilder $container): void
2323
/**
2424
* @test
2525
*/
26-
public function ifCompilerPassCollectsServicesByArgumentTheseWillExist()
26+
public function ifCompilerPassCollectsServicesByArgumentTheseWillExist(): void
2727
{
2828
$collectingService = new Definition();
2929
$this->setDefinition('jms_translation.extractor_manager', $collectingService);

Tests/DependencyInjection/Compiler/MountFileVisitorsPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected function registerCompilerPass(ContainerBuilder $container): void
2323
/**
2424
* @test
2525
*/
26-
public function ifCompilerPassCollectsServicesByArgumentTheseWillExist()
26+
public function ifCompilerPassCollectsServicesByArgumentTheseWillExist(): void
2727
{
2828
$collectingService = new Definition();
2929
$this->setDefinition('jms_translation.extractor.file_extractor', $collectingService);

Tests/DependencyInjection/Compiler/MountLoadersPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected function registerCompilerPass(ContainerBuilder $container): void
2323
/**
2424
* @test
2525
*/
26-
public function ifCompilerPassCollectsServicesByArgumentTheseWillExist()
26+
public function ifCompilerPassCollectsServicesByArgumentTheseWillExist(): void
2727
{
2828
$collectingService = new Definition();
2929
$this->setDefinition('jms_translation.loader_manager', $collectingService);

Tests/DependencyInjection/JMSTranslationExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected function getContainerExtensions(): array
2222
/**
2323
* @test
2424
*/
25-
public function defaultParametersAfterLoading()
25+
public function defaultParametersAfterLoading(): void
2626
{
2727
$this->load();
2828

@@ -32,7 +32,7 @@ public function defaultParametersAfterLoading()
3232
/**
3333
* @test
3434
*/
35-
public function basicParametersAfterLoading()
35+
public function basicParametersAfterLoading(): void
3636
{
3737
$locales = ['en', 'fr', 'es'];
3838
$this->load(['source_language' => 'fr', 'locales' => $locales]);

Tests/Functional/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function registerBundles(): iterable
6969
];
7070
}
7171

72-
public function registerContainerConfiguration(LoaderInterface $loader)
72+
public function registerContainerConfiguration(LoaderInterface $loader): void
7373
{
7474
$loader->load($this->fwConfig);
7575
if ($this->config) {

Tests/Functional/Command/BaseCommandTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
abstract class BaseCommandTestCase extends BaseTestCase
2727
{
28-
protected function getApp(array $options = [])
28+
protected function getApp(array $options = []): Application
2929
{
3030
$kernel = $this->createKernel($options);
3131
$kernel->boot();

Tests/Functional/Command/ExtractCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
class ExtractCommandTest extends BaseCommandTestCase
2727
{
28-
public function testExtract()
28+
public function testExtract(): void
2929
{
3030
$input = new ArgvInput([
3131
'app/console',
@@ -58,7 +58,7 @@ public function testExtract()
5858
$this->assertTrue(isset($files['messages']['en']));
5959
}
6060

61-
public function testExtractDryRun()
61+
public function testExtractDryRun(): void
6262
{
6363
$input = new ArgvInput([
6464
'app/console',

Tests/Functional/Command/Output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Output extends AbstractOutput
2626
{
2727
private $content = '';
2828

29-
public function doWrite($content, $newline)
29+
public function doWrite($content, $newline): void
3030
{
3131
$this->content .= $content;
3232

Tests/Functional/Controller/ApiControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class ApiControllerTest extends BaseTestCase
1515
{
16-
public function testUpdateAction()
16+
public function testUpdateAction(): void
1717
{
1818
// Start application
1919
$client = static::createClient(['config' => 'test_updating_translations.yml']);

0 commit comments

Comments
 (0)