Skip to content

Commit 0481d06

Browse files
luispabonnicolas-grekas
authored andcommitted
Ensure signatures for setUp|tearDown|setUpAfterClass|tearDownAfterClass methods in tests are compatible with phpunit 8.2
1 parent 35cf8ab commit 0481d06

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Tests/Command/CachePoolDeleteCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CachePoolDeleteCommandTest extends TestCase
2323
{
2424
private $cachePool;
2525

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
$this->cachePool = $this->getMockBuilder(CacheItemPoolInterface::class)
2929
->getMock();

Tests/Command/XliffLintCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ private function getKernelAwareApplicationMock()
131131
return $application;
132132
}
133133

134-
protected function setUp()
134+
protected function setUp(): void
135135
{
136136
@mkdir(sys_get_temp_dir().'/xliff-lint-test');
137137
$this->files = [];
138138
}
139139

140-
protected function tearDown()
140+
protected function tearDown(): void
141141
{
142142
foreach ($this->files as $file) {
143143
if (file_exists($file)) {

Tests/Functional/CachePoolListCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class CachePoolListCommandTest extends AbstractWebTestCase
2222
{
23-
protected function setUp()
23+
protected function setUp(): void
2424
{
2525
static::bootKernel(['test_case' => 'CachePools', 'root_config' => 'config.yml']);
2626
}

Tests/Functional/RouterDebugCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class RouterDebugCommandTest extends AbstractWebTestCase
2121
{
2222
private $application;
2323

24-
protected function setUp()
24+
protected function setUp(): void
2525
{
2626
$kernel = static::createKernel(['test_case' => 'RouterDebug', 'root_config' => 'config.yml']);
2727
$this->application = new Application($kernel);

Tests/Functional/TranslationDebugCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TranslationDebugCommandTest extends AbstractWebTestCase
2121
{
2222
private $application;
2323

24-
protected function setUp()
24+
protected function setUp(): void
2525
{
2626
$kernel = static::createKernel(['test_case' => 'TransDebug', 'root_config' => 'config.yml']);
2727
$this->application = new Application($kernel);

0 commit comments

Comments
 (0)