From a1734238202689e17359cdbf4ecc26ba2512cc92 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 8 Dec 2020 09:17:10 +0100 Subject: [PATCH] Fix CS issues --- .../AnnotationBundle/WallabagAnnotationTestCase.php | 2 +- tests/Wallabag/ApiBundle/WallabagApiTestCase.php | 2 +- .../CoreBundle/Command/InstallCommandTest.php | 4 ++-- .../CoreBundle/Command/ReloadEntryCommandTest.php | 2 +- .../Wallabag/CoreBundle/Helper/ContentProxyTest.php | 12 ++++++------ tests/Wallabag/CoreBundle/Helper/RedirectTest.php | 2 +- .../Helper/RuleBasedIgnoreOriginProcessorTest.php | 2 +- .../CoreBundle/Helper/RuleBasedTaggerTest.php | 2 +- tests/Wallabag/CoreBundle/WallabagCoreTestCase.php | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/Wallabag/AnnotationBundle/WallabagAnnotationTestCase.php b/tests/Wallabag/AnnotationBundle/WallabagAnnotationTestCase.php index 136a980e2..180c044d7 100644 --- a/tests/Wallabag/AnnotationBundle/WallabagAnnotationTestCase.php +++ b/tests/Wallabag/AnnotationBundle/WallabagAnnotationTestCase.php @@ -17,7 +17,7 @@ abstract class WallabagAnnotationTestCase extends WebTestCase */ protected $user; - public function setUp(): void + protected function setUp(): void { $this->client = $this->createAuthorizedClient(); } diff --git a/tests/Wallabag/ApiBundle/WallabagApiTestCase.php b/tests/Wallabag/ApiBundle/WallabagApiTestCase.php index b7941caf5..49f5bcdc7 100644 --- a/tests/Wallabag/ApiBundle/WallabagApiTestCase.php +++ b/tests/Wallabag/ApiBundle/WallabagApiTestCase.php @@ -17,7 +17,7 @@ abstract class WallabagApiTestCase extends WebTestCase */ protected $user; - public function setUp(): void + protected function setUp(): void { $this->client = $this->createAuthorizedClient(); } diff --git a/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php b/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php index d79636b16..5ab1750c3 100644 --- a/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php +++ b/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php @@ -30,7 +30,7 @@ class InstallCommandTest extends WallabagCoreTestCase StaticDriver::setKeepStaticConnections(true); } - public function setUp(): void + protected function setUp(): void { parent::setUp(); @@ -66,7 +66,7 @@ class InstallCommandTest extends WallabagCoreTestCase $this->resetDatabase($this->getClient()); } - public function tearDown(): void + protected function tearDown(): void { $databasePath = getenv('TEST_DATABASE_PATH'); // Remove variable environnement diff --git a/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php b/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php index f5233194e..0bd4a5780 100644 --- a/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php +++ b/tests/Wallabag/CoreBundle/Command/ReloadEntryCommandTest.php @@ -22,7 +22,7 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase */ public $bobEntry; - public function setUp(): void + protected function setUp(): void { parent::setUp(); diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index b318cf2c5..54c992cc0 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php @@ -665,7 +665,7 @@ class ContentProxyTest extends TestCase $this->assertSame('1.1.1.1', $entry->getDomainName()); } - public function testWebsiteWithValidUTF8Title_doNothing() + public function testWebsiteWithValidUTF8TitleDoNothing() { // You can use https://www.online-toolz.com/tools/text-hex-convertor.php to convert UTF-8 text <=> hex // See http://graphemica.com for more info about the characters @@ -704,7 +704,7 @@ class ContentProxyTest extends TestCase $this->assertSame($expectedTitle, $this->strToHex($entry->getTitle())); } - public function testWebsiteWithInvalidUTF8Title_removeInvalidCharacter() + public function testWebsiteWithInvalidUTF8TitleRemoveInvalidCharacter() { // See http://graphemica.com for more info about the characters // 'a€b' (61;80;62) in hexadecimal and WINDOWS-1252 - but 80 is a invalid UTF-8 character. @@ -743,7 +743,7 @@ class ContentProxyTest extends TestCase $this->assertSame($expectedTitle, $this->strToHex($entry->getTitle())); } - public function testPdfWithUTF16BETitle_convertToUTF8() + public function testPdfWithUTF16BETitleConvertToUTF8() { // See http://graphemica.com for more info about the characters // '😻' (U+1F63B;D83DDE3B) in hexadecimal and as UTF16BE @@ -781,7 +781,7 @@ class ContentProxyTest extends TestCase $this->assertSame($expectedTitle, $this->strToHex($entry->getTitle())); } - public function testPdfWithUTF8Title_doNothing() + public function testPdfWithUTF8TitleDoNothing() { // See http://graphemica.com for more info about the characters // '😻' (U+1F63B;D83DDE3B) in hexadecimal and as UTF8 @@ -819,7 +819,7 @@ class ContentProxyTest extends TestCase $this->assertSame($expectedTitle, $this->strToHex($entry->getTitle())); } - public function testPdfWithWINDOWS1252Title_convertToUTF8() + public function testPdfWithWINDOWS1252TitleConvertToUTF8() { // See http://graphemica.com for more info about the characters // '€' (80) in hexadecimal and WINDOWS-1252 @@ -857,7 +857,7 @@ class ContentProxyTest extends TestCase $this->assertSame($expectedTitle, $this->strToHex($entry->getTitle())); } - public function testPdfWithInvalidCharacterInTitle_removeInvalidCharacter() + public function testPdfWithInvalidCharacterInTitleRemoveInvalidCharacter() { // See http://graphemica.com for more info about the characters // '😻ℤ�z' (U+1F63B or F09F98BB; U+2124 or E284A4; invalid character 81; U+007A or 7A) in hexadecimal and UTF-8 diff --git a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php index 69bec07e4..4a8864e3c 100644 --- a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php +++ b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php @@ -20,7 +20,7 @@ class RedirectTest extends TestCase /** @var UsernamePasswordToken */ private $token; - public function setUp(): void + protected function setUp(): void { $this->routerMock = $this->getMockBuilder('Symfony\Component\Routing\Router') ->disableOriginalConstructor() diff --git a/tests/Wallabag/CoreBundle/Helper/RuleBasedIgnoreOriginProcessorTest.php b/tests/Wallabag/CoreBundle/Helper/RuleBasedIgnoreOriginProcessorTest.php index ba697e4bc..afe8502f7 100644 --- a/tests/Wallabag/CoreBundle/Helper/RuleBasedIgnoreOriginProcessorTest.php +++ b/tests/Wallabag/CoreBundle/Helper/RuleBasedIgnoreOriginProcessorTest.php @@ -20,7 +20,7 @@ class RuleBasedIgnoreOriginProcessorTest extends TestCase private $logger; private $handler; - public function setUp(): void + protected function setUp(): void { $this->rulerz = $this->getRulerZMock(); $this->logger = $this->getLogger(); diff --git a/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php b/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php index db5089bbb..9500bff45 100644 --- a/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php +++ b/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php @@ -21,7 +21,7 @@ class RuleBasedTaggerTest extends TestCase private $logger; private $handler; - public function setUp(): void + protected function setUp(): void { $this->rulerz = $this->getRulerZMock(); $this->tagRepository = $this->getTagRepositoryMock(); diff --git a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php index 10787ec1c..c0fd6ea53 100644 --- a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php +++ b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php @@ -18,7 +18,7 @@ abstract class WallabagCoreTestCase extends WebTestCase */ private $client = null; - public function setUp(): void + protected function setUp(): void { parent::setUp();