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();

0 commit comments

Comments
 (0)