mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-29 12:31:02 +00:00
Fix CS issues
This commit is contained in:
parent
54e398f58d
commit
a173423820
9 changed files with 15 additions and 15 deletions
|
@ -17,7 +17,7 @@ abstract class WallabagAnnotationTestCase extends WebTestCase
|
|||
*/
|
||||
protected $user;
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->client = $this->createAuthorizedClient();
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ abstract class WallabagApiTestCase extends WebTestCase
|
|||
*/
|
||||
protected $user;
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->client = $this->createAuthorizedClient();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -22,7 +22,7 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
|
|||
*/
|
||||
public $bobEntry;
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -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
|
||||
// '😻ℤ<F09F98BB>z' (U+1F63B or F09F98BB; U+2124 or E284A4; invalid character 81; U+007A or 7A) in hexadecimal and UTF-8
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -18,7 +18,7 @@ abstract class WallabagCoreTestCase extends WebTestCase
|
|||
*/
|
||||
private $client = null;
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
|
Loading…
Reference in a new issue