Remove support for PHP < 7.2

Updating deps

  - Removing electrolinux/php-html5lib (0.1.0)
  - Updating doctrine/inflector (1.3.1 => 1.4.3)
  - Updating doctrine/lexer (1.0.2 => 1.2.1)
  - Installing symfony/polyfill-php80 (v1.17.0)
  - Updating symfony/service-contracts (v1.1.8 => v2.1.2)
  - Installing symfony/deprecation-contracts (v2.1.2)
  - Updating symfony/mime (v4.4.8 => v5.1.1)
  - Updating friendsofsymfony/rest-bundle (2.7.4 => 2.8.0)
  - Updating doctrine/instantiator (1.3.0 => 1.3.1)
  - Updating ocramius/proxy-manager (2.1.1 => 2.2.3)
  - Updating php-http/discovery (1.7.4 => 1.8.0)
  - Updating symfony/http-client-contracts (v1.1.8 => v2.1.2)
  - Updating symfony/http-client (v4.4.8 => v5.1.1)
  - Updating php-http/httplug-bundle (1.16.0 => 1.18.0)
  - Updating symfony/phpunit-bridge (v4.3.11 => v5.1.1)
  - Updating doctrine/data-fixtures (1.3.3 => 1.4.3)
  - Updating composer/xdebug-handler (1.4.1 => 1.4.2)
  - Updating masterminds/html5 (2.7.0 => 2.7.1)
  - Updating j0k3r/php-readability (1.2.4 => 1.2.5)
  - Updating phpoption/phpoption (1.7.3 => 1.7.4)
  - Updating nikic/php-parser (v4.4.0 => v4.5.0)
  - Installing thecodingmachine/safe (v1.1.1)
  - Updating spomky-labs/otphp (v9.1.4 => v10.0.1)
  - Updating pagerfanta/pagerfanta (v2.1.3 => v2.3.0)

Package white-october/pagerfanta-bundle is abandoned, you should avoid using it. Use babdev/pagerfanta-bundle instead.

  - Removing white-october/pagerfanta-bundle (v1.3.2)
  - Installing babdev/pagerfanta-bundle (v2.4.2)

Upgrading PHPStan to 0.12 and use extension installer

  - Removing phpstan/phpdoc-parser (0.3.5)
  - Removing nette/utils (v3.1.2)
  - Removing nette/schema (v1.0.2)
  - Removing nette/robot-loader (v3.2.3)
  - Removing nette/php-generator (v3.4.0)
  - Removing nette/neon (v3.1.2)
  - Removing nette/finder (v2.5.2)
  - Removing nette/di (v3.0.4)
  - Removing nette/bootstrap (v3.0.2)
  - Updating phpstan/phpstan (0.11.19 => 0.12.29)
  - Updating phpstan/phpstan-doctrine (0.11.6 => 0.12.16)
  - Updating phpstan/phpstan-phpunit (0.11.2 => 0.12.11)
  - Updating phpstan/phpstan-symfony (0.11.6 => 0.12.6)
  - Installing phpstan/extension-installer (1.0.4)

Upgrading jms/serializer-bundle to version 3 (and willdurand/hateoas-bundle to version 2)

  - Removing phpoption/phpoption (1.7.4)
  - Removing phpcollection/phpcollection (0.5.0)
  - Removing jms/parser-lib (1.0.0)
  - Updating jms/metadata (1.7.0 => 2.3.0)
  - Updating jms/serializer (1.14.1 => 3.7.0)
  - Updating jms/serializer-bundle (2.4.4 => 3.6.0)
  - Updating willdurand/hateoas (2.12.0 => 3.6.0)
  - Updating willdurand/hateoas-bundle (1.4.0 => 2.1.0)

Upgrading dama/doctrine-test-bundle to version 6

  - Updating dama/doctrine-test-bundle (v5.0.3 => v6.2.0)
This commit is contained in:
Jeremy Benoist 2020-06-15 08:25:59 +02:00
parent d388debcab
commit 7332d1f4e5
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
28 changed files with 1297 additions and 1286 deletions

1
.gitignore vendored
View file

@ -14,6 +14,7 @@
!/bin/console !/bin/console
!/bin/symfony_requirements !/bin/symfony_requirements
.php_cs.cache .php_cs.cache
.phpunit.result.cache
# Parameters # Parameters
/app/config/parameters.yml /app/config/parameters.yml

View file

@ -22,7 +22,6 @@ if: |
branch = master branch = master
php: php:
- 7.1
- 7.2 - 7.2
- 7.3 - 7.3
- 7.4 - 7.4
@ -51,7 +50,6 @@ before_install:
- PHP=$TRAVIS_PHP_VERSION - PHP=$TRAVIS_PHP_VERSION
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini || echo "xdebug not available" - phpenv config-rm xdebug.ini || echo "xdebug not available"
- composer self-update --no-progress
# install imagick # install imagick
- pear config-set preferred_state beta - pear config-set preferred_state beta
- pecl channel-update pecl.php.net - pecl channel-update pecl.php.net
@ -71,7 +69,7 @@ before_script:
script: script:
- if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi; - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi;
# PHPStan needs PHPUnit to be installed and cache app to be generated # PHPStan needs PHPUnit to be installed and cache app to be generated
- if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then php bin/phpstan analyse src tests --no-progress --level 1 ; fi; - if [[ $CS_FIXER = run ]]; then php bin/phpstan analyse ; fi;
- if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi; - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi;
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi; - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi; - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi;

View file

@ -30,7 +30,7 @@ class AppKernel extends Kernel
new KPhoen\RulerZBundle\KPhoenRulerZBundle(), new KPhoen\RulerZBundle\KPhoenRulerZBundle(),
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
new Craue\ConfigBundle\CraueConfigBundle(), new Craue\ConfigBundle\CraueConfigBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), new BabDev\PagerfantaBundle\BabDevPagerfantaBundle(),
new FOS\JsRoutingBundle\FOSJsRoutingBundle(), new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
new BD\GuzzleSiteAuthenticatorBundle\BDGuzzleSiteAuthenticatorBundle(), new BD\GuzzleSiteAuthenticatorBundle\BDGuzzleSiteAuthenticatorBundle(),
new OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(), new OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(),

View file

@ -3,6 +3,8 @@
"type": "project", "type": "project",
"description": "open source self hostable read-it-later web application", "description": "open source self hostable read-it-later web application",
"keywords": [ "keywords": [
"poche",
"wallabag",
"read-it-later", "read-it-later",
"read it later" "read it later"
], ],
@ -22,7 +24,7 @@
}, },
{ {
"name": "Jérémy Benoist", "name": "Jérémy Benoist",
"homepage": "http://www.j0k3r.net", "homepage": "https://www.j0k3r.net",
"role": "Developer" "role": "Developer"
} }
], ],
@ -31,7 +33,7 @@
"issues": "https://github.com/wallabag/wallabag/issues" "issues": "https://github.com/wallabag/wallabag/issues"
}, },
"require": { "require": {
"php": ">=7.1.3", "php": ">=7.2.5",
"ext-ctype": "*", "ext-ctype": "*",
"ext-curl": "*", "ext-curl": "*",
"ext-dom": "*", "ext-dom": "*",
@ -47,6 +49,7 @@
"ext-tidy": "*", "ext-tidy": "*",
"ext-tokenizer": "*", "ext-tokenizer": "*",
"ext-xml": "*", "ext-xml": "*",
"babdev/pagerfanta-bundle": "^2.4",
"bdunogier/guzzle-site-authenticator": "^1.0.0", "bdunogier/guzzle-site-authenticator": "^1.0.0",
"craue/config-bundle": "^2.3.0", "craue/config-bundle": "^2.3.0",
"defuse/php-encryption": "^2.1", "defuse/php-encryption": "^2.1",
@ -64,7 +67,7 @@
"incenteev/composer-parameter-handler": "^2.1", "incenteev/composer-parameter-handler": "^2.1",
"j0k3r/graby": "^2.0", "j0k3r/graby": "^2.0",
"javibravo/simpleue": "^2.0", "javibravo/simpleue": "^2.0",
"jms/serializer-bundle": "~2.2", "jms/serializer-bundle": "~3.6",
"kphoen/rulerz-bundle": "~0.13", "kphoen/rulerz-bundle": "~0.13",
"laminas/laminas-code": "^3.4", "laminas/laminas-code": "^3.4",
"laminas/laminas-diactoros": "^2.3", "laminas/laminas-diactoros": "^2.3",
@ -93,22 +96,22 @@
"twig/extensions": "^1.5", "twig/extensions": "^1.5",
"wallabag/php-mobi": "~1.0", "wallabag/php-mobi": "~1.0",
"wallabag/phpepub": "^4.0.7.2", "wallabag/phpepub": "^4.0.7.2",
"white-october/pagerfanta-bundle": "^1.1", "willdurand/hateoas-bundle": "~2.1"
"willdurand/hateoas-bundle": "~1.3"
}, },
"require-dev": { "require-dev": {
"dama/doctrine-test-bundle": "^5.0", "dama/doctrine-test-bundle": "^6.0",
"doctrine/doctrine-fixtures-bundle": "~3.0", "doctrine/doctrine-fixtures-bundle": "~3.0",
"friendsofphp/php-cs-fixer": "~2.13", "friendsofphp/php-cs-fixer": "~2.13",
"guzzlehttp/psr7": "^1.0", "guzzlehttp/psr7": "^1.0",
"m6web/redis-mock": "^5.0", "m6web/redis-mock": "^5.0",
"php-http/mock-client": "^1.0", "php-http/mock-client": "^1.0",
"phpstan/phpstan": "^0.11.0", "phpstan/extension-installer": "^1.0",
"phpstan/phpstan-doctrine": "^0.11.0", "phpstan/phpstan": "^0.12.0",
"phpstan/phpstan-phpunit": "^0.11.0", "phpstan/phpstan-doctrine": "^0.12.0",
"phpstan/phpstan-symfony": "^0.11.0", "phpstan/phpstan-phpunit": "^0.12.0",
"phpstan/phpstan-symfony": "^0.12.0",
"symfony/maker-bundle": "^1.18", "symfony/maker-bundle": "^1.18",
"symfony/phpunit-bridge": "~4.3.8" "symfony/phpunit-bridge": "~5.1.1"
}, },
"suggest": { "suggest": {
"ext-imagick": "To keep GIF animation when downloading image is enabled" "ext-imagick": "To keep GIF animation when downloading image is enabled"
@ -159,7 +162,7 @@
"config": { "config": {
"bin-dir": "bin", "bin-dir": "bin",
"platform": { "platform": {
"php": "7.1.3" "php": "7.2.5"
}, },
"sort-packages": true "sort-packages": true
}, },

2470
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,15 +1,14 @@
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
parameters: parameters:
level: 1
paths:
- src
- tests
symfony: symfony:
container_xml_path: %rootDir%/../../../var/cache/test/appTestDebugProjectContainer.xml container_xml_path: %rootDir%/../../../var/cache/test/appTestDebugProjectContainer.xml
# https://github.com/phpstan/phpstan/issues/694#issuecomment-350724288 # https://github.com/phpstan/phpstan/issues/694#issuecomment-350724288
autoload_files: autoload_files:
- vendor/bin/.phpunit/phpunit-7.4/vendor/autoload.php - vendor/bin/.phpunit/phpunit-8.3-0/vendor/autoload.php
inferPrivatePropertyTypeFromConstructor: true inferPrivatePropertyTypeFromConstructor: true

View file

@ -4,7 +4,7 @@ namespace Wallabag\AnnotationBundle\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Common\DataFixtures\DependentFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Wallabag\AnnotationBundle\Entity\Annotation; use Wallabag\AnnotationBundle\Entity\Annotation;
use Wallabag\CoreBundle\DataFixtures\EntryFixtures; use Wallabag\CoreBundle\DataFixtures\EntryFixtures;
use Wallabag\UserBundle\DataFixtures\UserFixtures; use Wallabag\UserBundle\DataFixtures\UserFixtures;

View file

@ -4,7 +4,7 @@ namespace Wallabag\CoreBundle\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Common\DataFixtures\DependentFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\Config;
use Wallabag\UserBundle\DataFixtures\UserFixtures; use Wallabag\UserBundle\DataFixtures\UserFixtures;
@ -13,7 +13,7 @@ class ConfigFixtures extends Fixture implements DependentFixtureInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function load(ObjectManager $manager) public function load(ObjectManager $manager): void
{ {
$adminConfig = new Config($this->getReference('admin-user')); $adminConfig = new Config($this->getReference('admin-user'));

View file

@ -4,7 +4,7 @@ namespace Wallabag\CoreBundle\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Common\DataFixtures\DependentFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\UserBundle\DataFixtures\UserFixtures; use Wallabag\UserBundle\DataFixtures\UserFixtures;
@ -13,7 +13,7 @@ class EntryFixtures extends Fixture implements DependentFixtureInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function load(ObjectManager $manager) public function load(ObjectManager $manager): void
{ {
$entries = [ $entries = [
'entry1' => [ 'entry1' => [

View file

@ -3,7 +3,7 @@
namespace Wallabag\CoreBundle\DataFixtures; namespace Wallabag\CoreBundle\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Wallabag\CoreBundle\Entity\IgnoreOriginInstanceRule; use Wallabag\CoreBundle\Entity\IgnoreOriginInstanceRule;
@ -23,7 +23,7 @@ class IgnoreOriginInstanceRuleFixtures extends Fixture implements ContainerAware
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function load(ObjectManager $manager) public function load(ObjectManager $manager): void
{ {
foreach ($this->container->getParameter('wallabag_core.default_ignore_origin_instance_rules') as $ignore_origin_instance_rule) { foreach ($this->container->getParameter('wallabag_core.default_ignore_origin_instance_rules') as $ignore_origin_instance_rule) {
$newIgnoreOriginInstanceRule = new IgnoreOriginInstanceRule(); $newIgnoreOriginInstanceRule = new IgnoreOriginInstanceRule();

View file

@ -4,7 +4,7 @@ namespace Wallabag\CoreBundle\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Common\DataFixtures\DependentFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Wallabag\CoreBundle\Entity\IgnoreOriginUserRule; use Wallabag\CoreBundle\Entity\IgnoreOriginUserRule;
use Wallabag\UserBundle\DataFixtures\UserFixtures; use Wallabag\UserBundle\DataFixtures\UserFixtures;
@ -13,7 +13,7 @@ class IgnoreOriginUserRuleFixtures extends Fixture implements DependentFixtureIn
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function load(ObjectManager $manager) public function load(ObjectManager $manager): void
{ {
$rule = new IgnoreOriginUserRule(); $rule = new IgnoreOriginUserRule();
$rule->setRule('host = "example.fr"'); $rule->setRule('host = "example.fr"');

View file

@ -3,7 +3,7 @@
namespace Wallabag\CoreBundle\DataFixtures; namespace Wallabag\CoreBundle\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Wallabag\CoreBundle\Entity\InternalSetting; use Wallabag\CoreBundle\Entity\InternalSetting;
@ -23,7 +23,7 @@ class InternalSettingFixtures extends Fixture implements ContainerAwareInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function load(ObjectManager $manager) public function load(ObjectManager $manager): void
{ {
foreach ($this->container->getParameter('wallabag_core.default_internal_settings') as $setting) { foreach ($this->container->getParameter('wallabag_core.default_internal_settings') as $setting) {
$newSetting = new InternalSetting(); $newSetting = new InternalSetting();

View file

@ -4,7 +4,7 @@ namespace Wallabag\CoreBundle\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Common\DataFixtures\DependentFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Wallabag\CoreBundle\Entity\SiteCredential; use Wallabag\CoreBundle\Entity\SiteCredential;
@ -25,7 +25,7 @@ class SiteCredentialFixtures extends Fixture implements DependentFixtureInterfac
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function load(ObjectManager $manager) public function load(ObjectManager $manager): void
{ {
$credential = new SiteCredential($this->getReference('admin-user')); $credential = new SiteCredential($this->getReference('admin-user'));
$credential->setHost('.super.com'); $credential->setHost('.super.com');

View file

@ -3,7 +3,7 @@
namespace Wallabag\CoreBundle\DataFixtures; namespace Wallabag\CoreBundle\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Wallabag\CoreBundle\Entity\Tag; use Wallabag\CoreBundle\Entity\Tag;
class TagFixtures extends Fixture class TagFixtures extends Fixture
@ -11,7 +11,7 @@ class TagFixtures extends Fixture
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function load(ObjectManager $manager) public function load(ObjectManager $manager): void
{ {
$tags = [ $tags = [
'foo-bar-tag' => 'foo bar', //tag used for EntryControllerTest 'foo-bar-tag' => 'foo bar', //tag used for EntryControllerTest

View file

@ -4,7 +4,7 @@ namespace Wallabag\CoreBundle\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Common\DataFixtures\DependentFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Wallabag\CoreBundle\Entity\TaggingRule; use Wallabag\CoreBundle\Entity\TaggingRule;
class TaggingRuleFixtures extends Fixture implements DependentFixtureInterface class TaggingRuleFixtures extends Fixture implements DependentFixtureInterface
@ -12,7 +12,7 @@ class TaggingRuleFixtures extends Fixture implements DependentFixtureInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function load(ObjectManager $manager) public function load(ObjectManager $manager): void
{ {
$tr1 = new TaggingRule(); $tr1 = new TaggingRule();
$tr1->setRule('content matches "spurs"'); $tr1->setRule('content matches "spurs"');

View file

@ -3,7 +3,7 @@
namespace Wallabag\UserBundle\DataFixtures; namespace Wallabag\UserBundle\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Wallabag\UserBundle\Entity\User; use Wallabag\UserBundle\Entity\User;
class UserFixtures extends Fixture class UserFixtures extends Fixture

View file

@ -17,7 +17,7 @@ abstract class WallabagAnnotationTestCase extends WebTestCase
*/ */
protected $user; protected $user;
public function setUp() public function setUp(): void
{ {
$this->client = $this->createAuthorizedClient(); $this->client = $this->createAuthorizedClient();
} }

View file

@ -17,7 +17,7 @@ abstract class WallabagApiTestCase extends WebTestCase
*/ */
protected $user; protected $user;
public function setUp() public function setUp(): void
{ {
$this->client = $this->createAuthorizedClient(); $this->client = $this->createAuthorizedClient();
} }

View file

@ -18,19 +18,19 @@ use Wallabag\CoreBundle\Command\InstallCommand;
class InstallCommandTest extends WallabagCoreTestCase class InstallCommandTest extends WallabagCoreTestCase
{ {
public static function setUpBeforeClass() public static function setUpBeforeClass(): void
{ {
// disable doctrine-test-bundle // disable doctrine-test-bundle
StaticDriver::setKeepStaticConnections(false); StaticDriver::setKeepStaticConnections(false);
} }
public static function tearDownAfterClass() public static function tearDownAfterClass(): void
{ {
// enable doctrine-test-bundle // enable doctrine-test-bundle
StaticDriver::setKeepStaticConnections(true); StaticDriver::setKeepStaticConnections(true);
} }
public function setUp() public function setUp(): void
{ {
parent::setUp(); parent::setUp();
@ -66,7 +66,7 @@ class InstallCommandTest extends WallabagCoreTestCase
$this->resetDatabase($this->getClient()); $this->resetDatabase($this->getClient());
} }
public function tearDown() public function tearDown(): void
{ {
$databasePath = getenv('TEST_DATABASE_PATH'); $databasePath = getenv('TEST_DATABASE_PATH');
// Remove variable environnement // Remove variable environnement

View file

@ -22,7 +22,7 @@ class ReloadEntryCommandTest extends WallabagCoreTestCase
*/ */
public $bobEntry; public $bobEntry;
public function setUp() public function setUp(): void
{ {
parent::setUp(); parent::setUp();

View file

@ -300,7 +300,7 @@ class ExportControllerTest extends WallabagCoreTestCase
$content = new \SimpleXMLElement($client->getResponse()->getContent()); $content = new \SimpleXMLElement($client->getResponse()->getContent());
$this->assertGreaterThan(0, $content->count()); $this->assertGreaterThan(0, $content->count());
$this->assertSame(\count($contentInDB), $content->count()); $this->assertCount($contentInDB, $content);
$this->assertNotEmpty('id', (string) $content->entry[0]->id); $this->assertNotEmpty('id', (string) $content->entry[0]->id);
$this->assertNotEmpty('title', (string) $content->entry[0]->title); $this->assertNotEmpty('title', (string) $content->entry[0]->title);
$this->assertNotEmpty('url', (string) $content->entry[0]->url); $this->assertNotEmpty('url', (string) $content->entry[0]->url);

View file

@ -20,7 +20,7 @@ class RedirectTest extends TestCase
/** @var UsernamePasswordToken */ /** @var UsernamePasswordToken */
private $token; private $token;
public function setUp() public function setUp(): void
{ {
$this->routerMock = $this->getMockBuilder('Symfony\Component\Routing\Router') $this->routerMock = $this->getMockBuilder('Symfony\Component\Routing\Router')
->disableOriginalConstructor() ->disableOriginalConstructor()

View file

@ -20,7 +20,7 @@ class RuleBasedIgnoreOriginProcessorTest extends TestCase
private $logger; private $logger;
private $handler; private $handler;
public function setUp() public function setUp(): void
{ {
$this->rulerz = $this->getRulerZMock(); $this->rulerz = $this->getRulerZMock();
$this->logger = $this->getLogger(); $this->logger = $this->getLogger();

View file

@ -21,7 +21,7 @@ class RuleBasedTaggerTest extends TestCase
private $logger; private $logger;
private $handler; private $handler;
public function setUp() public function setUp(): void
{ {
$this->rulerz = $this->getRulerZMock(); $this->rulerz = $this->getRulerZMock();
$this->tagRepository = $this->getTagRepositoryMock(); $this->tagRepository = $this->getTagRepositoryMock();

View file

@ -18,7 +18,7 @@ abstract class WallabagCoreTestCase extends WebTestCase
*/ */
private $client = null; private $client = null;
public function setUp() public function setUp(): void
{ {
parent::setUp(); parent::setUp();

View file

@ -19,7 +19,7 @@ class AuthenticationFailureListenerTest extends TestCase
private $listener; private $listener;
private $dispatcher; private $dispatcher;
protected function setUp() protected function setUp(): void
{ {
$request = Request::create('/'); $request = Request::create('/');
$request->request->set('_username', 'admin'); $request->request->set('_username', 'admin');

View file

@ -22,7 +22,7 @@ class CreateConfigListenerTest extends TestCase
private $request; private $request;
private $response; private $response;
protected function setUp() protected function setUp(): void
{ {
$session = new Session(new MockArraySessionStorage()); $session = new Session(new MockArraySessionStorage());
$this->em = $this->getMockBuilder('Doctrine\ORM\EntityManager') $this->em = $this->getMockBuilder('Doctrine\ORM\EntityManager')

View file

@ -14,7 +14,7 @@ class AuthCodeMailerTest extends TestCase
protected $spool; protected $spool;
protected $twig; protected $twig;
protected function setUp() protected function setUp(): void
{ {
$this->spool = new CountableMemorySpool(); $this->spool = new CountableMemorySpool();
$transport = new \Swift_Transport_SpoolTransport( $transport = new \Swift_Transport_SpoolTransport(