Skip to content

Commit 8524e96

Browse files
committed
Disable phpunit typehint patch on 4.3 branch
1 parent f29b3c8 commit 8524e96

24 files changed

+37
-37
lines changed

Tests/CacheWarmer/AnnotationsCacheWarmerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ class AnnotationsCacheWarmerTest extends TestCase
1717
{
1818
private $cacheDir;
1919

20-
protected function setUp()
20+
protected function setUp(): void
2121
{
2222
$this->cacheDir = sys_get_temp_dir().'/'.uniqid();
2323
$fs = new Filesystem();
2424
$fs->mkdir($this->cacheDir);
2525
parent::setUp();
2626
}
2727

28-
protected function tearDown()
28+
protected function tearDown(): void
2929
{
3030
$fs = new Filesystem();
3131
$fs->remove($this->cacheDir);

Tests/CacheWarmer/TemplatePathsCacheWarmerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class TemplatePathsCacheWarmerTest extends TestCase
3838

3939
private $tmpDir;
4040

41-
protected function setUp()
41+
protected function setUp(): void
4242
{
4343
$this->templateFinder = $this
4444
->getMockBuilder(TemplateFinderInterface::class)
@@ -59,7 +59,7 @@ protected function setUp()
5959
$this->filesystem->mkdir($this->tmpDir);
6060
}
6161

62-
protected function tearDown()
62+
protected function tearDown(): void
6363
{
6464
$this->filesystem->remove($this->tmpDir);
6565
}

Tests/Command/CacheClearCommand/CacheClearCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ class CacheClearCommandTest extends TestCase
2828
/** @var Filesystem */
2929
private $fs;
3030

31-
protected function setUp()
31+
protected function setUp(): void
3232
{
3333
$this->fs = new Filesystem();
3434
$this->kernel = new TestAppKernel('test', true);
3535
$this->fs->mkdir($this->kernel->getProjectDir());
3636
}
3737

38-
protected function tearDown()
38+
protected function tearDown(): void
3939
{
4040
$this->fs->remove($this->kernel->getProjectDir());
4141
}

Tests/Command/TranslationDebugCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ public function testDebugInvalidDirectory()
127127
$tester->execute(['locale' => 'en', 'bundle' => 'dir']);
128128
}
129129

130-
protected function setUp()
130+
protected function setUp(): void
131131
{
132132
$this->fs = new Filesystem();
133133
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf_translation', true);
134134
$this->fs->mkdir($this->translationDir.'/translations');
135135
$this->fs->mkdir($this->translationDir.'/templates');
136136
}
137137

138-
protected function tearDown()
138+
protected function tearDown(): void
139139
{
140140
$this->fs->remove($this->translationDir);
141141
}

Tests/Command/TranslationUpdateCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ public function testWriteMessagesForSpecificDomain()
105105
$this->assertRegExp('/Translation files were successfully updated./', $tester->getDisplay());
106106
}
107107

108-
protected function setUp()
108+
protected function setUp(): void
109109
{
110110
$this->fs = new Filesystem();
111111
$this->translationDir = sys_get_temp_dir().'/'.uniqid('sf_translation', true);
112112
$this->fs->mkdir($this->translationDir.'/translations');
113113
$this->fs->mkdir($this->translationDir.'/templates');
114114
}
115115

116-
protected function tearDown()
116+
protected function tearDown(): void
117117
{
118118
$this->fs->remove($this->translationDir);
119119
}

Tests/Command/YamlLintCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ private function getKernelAwareApplicationMock()
181181
return $application;
182182
}
183183

184-
protected function setUp()
184+
protected function setUp(): void
185185
{
186186
@mkdir(sys_get_temp_dir().'/yml-lint-test');
187187
$this->files = [];
188188
}
189189

190-
protected function tearDown()
190+
protected function tearDown(): void
191191
{
192192
foreach ($this->files as $file) {
193193
if (file_exists($file)) {

Tests/Console/Descriptor/TextDescriptorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515

1616
class TextDescriptorTest extends AbstractDescriptorTest
1717
{
18-
protected function setUp()
18+
protected function setUp(): void
1919
{
2020
putenv('COLUMNS=121');
2121
}
2222

23-
protected function tearDown()
23+
protected function tearDown(): void
2424
{
2525
putenv('COLUMNS');
2626
}

Tests/Controller/ControllerNameParserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ class ControllerNameParserTest extends TestCase
2323
{
2424
protected $loader;
2525

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
$this->loader = new ClassLoader();
2929
$this->loader->add('TestBundle', __DIR__.'/../Fixtures');
3030
$this->loader->add('TestApplication', __DIR__.'/../Fixtures');
3131
$this->loader->register();
3232
}
3333

34-
protected function tearDown()
34+
protected function tearDown(): void
3535
{
3636
$this->loader->unregister();
3737
$this->loader = null;

Tests/DependencyInjection/Compiler/CachePoolPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CachePoolPassTest extends TestCase
2626
{
2727
private $cachePoolPass;
2828

29-
protected function setUp()
29+
protected function setUp(): void
3030
{
3131
$this->cachePoolPass = new CachePoolPass();
3232
}

Tests/DependencyInjection/Compiler/DataCollectorTranslatorPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DataCollectorTranslatorPassTest extends TestCase
2222
private $container;
2323
private $dataCollectorTranslatorPass;
2424

25-
protected function setUp()
25+
protected function setUp(): void
2626
{
2727
$this->container = new ContainerBuilder();
2828
$this->dataCollectorTranslatorPass = new DataCollectorTranslatorPass();

Tests/DependencyInjection/Compiler/WorkflowGuardListenerPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class WorkflowGuardListenerPassTest extends TestCase
2525
private $container;
2626
private $compilerPass;
2727

28-
protected function setUp()
28+
protected function setUp(): void
2929
{
3030
$this->container = new ContainerBuilder();
3131
$this->compilerPass = new WorkflowGuardListenerPass();

Tests/Functional/AbstractWebTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ public static function assertRedirect($response, $location)
2222
self::assertEquals('http://localhost'.$location, $response->headers->get('Location'));
2323
}
2424

25-
public static function setUpBeforeClass()
25+
public static function setUpBeforeClass(): void
2626
{
2727
static::deleteTmpDir();
2828
}
2929

30-
public static function tearDownAfterClass()
30+
public static function tearDownAfterClass(): void
3131
{
3232
static::deleteTmpDir();
3333
}

Tests/Functional/CachePoolClearCommandTest.php

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

Tests/Functional/ConfigDebugCommandTest.php

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

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
$kernel = static::createKernel(['test_case' => 'ConfigDump', 'root_config' => 'config.yml']);
2929
$this->application = new Application($kernel);

Tests/Functional/ConfigDumpReferenceCommandTest.php

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

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
$kernel = static::createKernel(['test_case' => 'ConfigDump', 'root_config' => 'config.yml']);
2929
$this->application = new Application($kernel);

Tests/Templating/GlobalVariablesTest.php

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

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
$this->container = new Container();
2929
$this->globals = new GlobalVariables($this->container);

Tests/Templating/Helper/AssetsHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AssetsHelperTest extends TestCase
2424
{
2525
private $helper;
2626

27-
protected function setUp()
27+
protected function setUp(): void
2828
{
2929
$fooPackage = new Package(new StaticVersionStrategy('42', '%s?v=%s'));
3030
$barPackage = new Package(new StaticVersionStrategy('22', '%s?%s'));

Tests/Templating/Helper/FormHelperDivLayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function getExtensions()
5555
]);
5656
}
5757

58-
protected function tearDown()
58+
protected function tearDown(): void
5959
{
6060
$this->engine = null;
6161

Tests/Templating/Helper/FormHelperTableLayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected function getExtensions()
100100
]);
101101
}
102102

103-
protected function tearDown()
103+
protected function tearDown(): void
104104
{
105105
$this->engine = null;
106106

Tests/Templating/Helper/RequestHelperTest.php

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

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
$this->requestStack = new RequestStack();
2929
$request = new Request();

Tests/Templating/Helper/SessionHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class SessionHelperTest extends TestCase
2525
{
2626
protected $requestStack;
2727

28-
protected function setUp()
28+
protected function setUp(): void
2929
{
3030
$request = new Request();
3131

@@ -39,7 +39,7 @@ protected function setUp()
3939
$this->requestStack->push($request);
4040
}
4141

42-
protected function tearDown()
42+
protected function tearDown(): void
4343
{
4444
$this->requestStack = null;
4545
}

Tests/Templating/TemplateFilenameParserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class TemplateFilenameParserTest extends TestCase
2222
{
2323
protected $parser;
2424

25-
protected function setUp()
25+
protected function setUp(): void
2626
{
2727
$this->parser = new TemplateFilenameParser();
2828
}
2929

30-
protected function tearDown()
30+
protected function tearDown(): void
3131
{
3232
$this->parser = null;
3333
}

Tests/Templating/TemplateNameParserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TemplateNameParserTest extends TestCase
2323
{
2424
protected $parser;
2525

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
$kernel = $this->getMockBuilder('Symfony\Component\HttpKernel\KernelInterface')->getMock();
2929
$kernel
@@ -40,7 +40,7 @@ protected function setUp()
4040
$this->parser = new TemplateNameParser($kernel);
4141
}
4242

43-
protected function tearDown()
43+
protected function tearDown(): void
4444
{
4545
$this->parser = null;
4646
}

Tests/Translation/TranslatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ class TranslatorTest extends TestCase
2424
{
2525
protected $tmpDir;
2626

27-
protected function setUp()
27+
protected function setUp(): void
2828
{
2929
$this->tmpDir = sys_get_temp_dir().'/sf_translation';
3030
$this->deleteTmpDir();
3131
}
3232

33-
protected function tearDown()
33+
protected function tearDown(): void
3434
{
3535
$this->deleteTmpDir();
3636
}

0 commit comments

Comments
 (0)