Skip to content

Commit 0e6f40e

Browse files
committed
upgrade symfony to 4.4|5.3
1 parent 6f565c3 commit 0e6f40e

Some content is hidden

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

54 files changed

+67
-685
lines changed

Composer/ScriptHandler.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

Tests/AppKernel.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

Tests/Command/DumpEmoticonsCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DumpEmoticonsCommandTest extends TestCase
1717
private $emoticonPath;
1818
private $emoticonFolder;
1919

20-
public function setUp()
20+
public function setUp(): void
2121
{
2222
$this->rootDir = __DIR__.'/..';
2323
$this->webDir = sys_get_temp_dir().'/symfonyFMBbcodeweb';
@@ -28,15 +28,15 @@ public function setUp()
2828
$this->emoticonFolder = $this->rootDir.'/../vendor/mjohnson/decoda/emoticons';
2929
}
3030

31-
public function tearDown()
31+
public function tearDown(): void
3232
{
3333
if (!is_dir($this->webDir)) {
3434
return;
3535
}
3636
$this->removeDirectory($this->webDir);
3737
}
3838

39-
protected function removeDirectory($directory)
39+
protected function removeDirectory($directory): void
4040
{
4141
$iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory), \RecursiveIteratorIterator::CHILD_FIRST);
4242
foreach ($iterator as $path) {
@@ -52,7 +52,7 @@ protected function removeDirectory($directory)
5252
@rmdir($directory);
5353
}
5454

55-
public function testExecute()
55+
public function testExecute(): void
5656
{
5757
$webDir = $this->webDir;
5858
$emoticonPath = $this->emoticonPath;

Tests/Decoda/DecodaManagerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DecodaManagerTest extends TestCase
1717
*/
1818
protected $object;
1919

20-
protected function setUp()
20+
protected function setUp(): void
2121
{
2222
$container = $this->createMock(ContainerInterface::class);
2323
$kernel = $this->createMock(KernelInterface::class);
@@ -32,22 +32,22 @@ protected function setUp()
3232
$this->object = new DecodaManager($container, $locator, $options);
3333
}
3434

35-
public function testHas()
35+
public function testHas(): void
3636
{
3737
$this->assertTrue($this->object->has(DecodaManager::DECODA_DEFAULT));
3838
$this->assertTrue($this->object->has('foo'));
3939
$this->assertFalse($this->object->has('bar'));
4040
}
4141

42-
public function testSetFilter()
42+
public function testSetFilter(): void
4343
{
4444
$filter = $this->createMock(Filter::class);
4545
$this->object->setFilter('foo', $filter);
4646
$this->assertTrue($this->object->hasFilter('foo'));
4747
$this->assertSame($filter, $this->object->getFilter('foo'));
4848
}
4949

50-
public function testSetHook()
50+
public function testSetHook(): void
5151
{
5252
$hook = $this->createMock(Hook::class);
5353
$this->object->setHook('foo', $hook);

Tests/Decoda/DecodaTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class DecodaTest extends TestCase
99
{
10-
public function testSetLocale()
10+
public function testSetLocale(): void
1111
{
1212
$result = new Decoda();
1313
$result->setDefaultLocale('en');
@@ -23,7 +23,7 @@ public function testSetLocale()
2323
/**
2424
* @dataProvider getMessage
2525
*/
26-
public function testMessage($defaultLocale, $locale, $value, $expect)
26+
public function testMessage($defaultLocale, $locale, $value, $expect): void
2727
{
2828
if ($expect instanceof \Exception) {
2929
$this->expectException(get_class($expect));
@@ -58,7 +58,7 @@ public function testMessage($defaultLocale, $locale, $value, $expect)
5858
$this->assertEquals($expect, $result->message($value));
5959
}
6060

61-
public function getMessage()
61+
public function getMessage(): array
6262
{
6363
return array(
6464
array(null, 'en', 'foo', 'foo-en'),

Tests/Decoda/Hook/EmoticonHookTest.php

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

1212
class EmoticonHookTest extends TestCase
1313
{
14-
public function testGetMatcher()
14+
public function testGetMatcher(): void
1515
{
1616
$expectEmoticon = new Emoticon();
1717
$expectEmoticon->setSmiley(':foo:');

Tests/DependencyInjection/FMBbcodeExtensionTest.php

Lines changed: 0 additions & 98 deletions
This file was deleted.

Tests/FunctionalTestBundle/FunctionalTestBundle.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

Tests/FunctionalTestBundle/Resources/config/config.yml

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)