diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-12-18 14:32:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-18 14:32:21 +0100 |
commit | ef5c8a7d01d7b3f0041455503499ab67e2206e0d (patch) | |
tree | 66fad00b695ceb24a5a3ee7ef3185c18050f316f /tests/Wallabag/CoreBundle | |
parent | 01ea7f585504fba74bd138386ca30ca4d26cfe65 (diff) | |
parent | ad880894a8dc0af97ee145f76ed10ca99e1ebf5a (diff) | |
download | wallabag-ef5c8a7d01d7b3f0041455503499ab67e2206e0d.tar.gz wallabag-ef5c8a7d01d7b3f0041455503499ab67e2206e0d.tar.zst wallabag-ef5c8a7d01d7b3f0041455503499ab67e2206e0d.zip |
Merge pull request #3515 from wallabag/php-7.2
Add PHP 7.2 compatibility
Diffstat (limited to 'tests/Wallabag/CoreBundle')
15 files changed, 43 insertions, 21 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index a02f9699..0e7e1576 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | |||
@@ -10,7 +10,7 @@ use Wallabag\CoreBundle\Helper\ContentProxy; | |||
10 | 10 | ||
11 | class EntryControllerTest extends WallabagCoreTestCase | 11 | class EntryControllerTest extends WallabagCoreTestCase |
12 | { | 12 | { |
13 | const An_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE = 'http://www.lemonde.fr/judo/article/2017/11/11/judo-la-decima-de-teddy-riner_5213605_1556020.html'; | 13 | const AN_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE = 'http://www.lemonde.fr/judo/article/2017/11/11/judo-la-decima-de-teddy-riner_5213605_1556020.html'; |
14 | public $downloadImagesEnabled = false; | 14 | public $downloadImagesEnabled = false; |
15 | public $url = 'http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html'; | 15 | public $url = 'http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html'; |
16 | 16 | ||
@@ -1018,7 +1018,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
1018 | $this->logInAs('admin'); | 1018 | $this->logInAs('admin'); |
1019 | $client = $this->getClient(); | 1019 | $client = $this->getClient(); |
1020 | 1020 | ||
1021 | $url = self::An_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE; | 1021 | $url = self::AN_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE; |
1022 | $client->getContainer()->get('craue_config')->set('download_images_enabled', 1); | 1022 | $client->getContainer()->get('craue_config')->set('download_images_enabled', 1); |
1023 | 1023 | ||
1024 | $crawler = $client->request('GET', '/new'); | 1024 | $crawler = $client->request('GET', '/new'); |
@@ -1060,7 +1060,7 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
1060 | $this->logInAs('admin'); | 1060 | $this->logInAs('admin'); |
1061 | $client = $this->getClient(); | 1061 | $client = $this->getClient(); |
1062 | 1062 | ||
1063 | $url = self::An_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE; | 1063 | $url = self::AN_URL_CONTAINING_AN_ARTICLE_WITH_IMAGE; |
1064 | $client->getContainer()->get('craue_config')->set('download_images_enabled', 1); | 1064 | $client->getContainer()->get('craue_config')->set('download_images_enabled', 1); |
1065 | 1065 | ||
1066 | $crawler = $client->request('GET', '/new'); | 1066 | $crawler = $client->request('GET', '/new'); |
diff --git a/tests/Wallabag/CoreBundle/Event/Listener/LocaleListenerTest.php b/tests/Wallabag/CoreBundle/Event/Listener/LocaleListenerTest.php index 0dbd9f70..bc35d100 100644 --- a/tests/Wallabag/CoreBundle/Event/Listener/LocaleListenerTest.php +++ b/tests/Wallabag/CoreBundle/Event/Listener/LocaleListenerTest.php | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Event\Listener; | 3 | namespace Tests\Wallabag\CoreBundle\Event\Listener; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Symfony\Component\EventDispatcher\EventDispatcher; | 6 | use Symfony\Component\EventDispatcher\EventDispatcher; |
6 | use Symfony\Component\HttpFoundation\Request; | 7 | use Symfony\Component\HttpFoundation\Request; |
7 | use Symfony\Component\HttpFoundation\Session\Session; | 8 | use Symfony\Component\HttpFoundation\Session\Session; |
@@ -11,7 +12,7 @@ use Symfony\Component\HttpKernel\HttpKernelInterface; | |||
11 | use Symfony\Component\HttpKernel\KernelEvents; | 12 | use Symfony\Component\HttpKernel\KernelEvents; |
12 | use Wallabag\CoreBundle\Event\Listener\LocaleListener; | 13 | use Wallabag\CoreBundle\Event\Listener\LocaleListener; |
13 | 14 | ||
14 | class LocaleListenerTest extends \PHPUnit_Framework_TestCase | 15 | class LocaleListenerTest extends TestCase |
15 | { | 16 | { |
16 | public function testWithoutSession() | 17 | public function testWithoutSession() |
17 | { | 18 | { |
diff --git a/tests/Wallabag/CoreBundle/Event/Listener/UserLocaleListenerTest.php b/tests/Wallabag/CoreBundle/Event/Listener/UserLocaleListenerTest.php index 5ffe1ca6..93edfde8 100644 --- a/tests/Wallabag/CoreBundle/Event/Listener/UserLocaleListenerTest.php +++ b/tests/Wallabag/CoreBundle/Event/Listener/UserLocaleListenerTest.php | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Event\Listener; | 3 | namespace Tests\Wallabag\CoreBundle\Event\Listener; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Symfony\Component\HttpFoundation\Request; | 6 | use Symfony\Component\HttpFoundation\Request; |
6 | use Symfony\Component\HttpFoundation\Session\Session; | 7 | use Symfony\Component\HttpFoundation\Session\Session; |
7 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; | 8 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; |
@@ -11,7 +12,7 @@ use Wallabag\CoreBundle\Entity\Config; | |||
11 | use Wallabag\CoreBundle\Event\Listener\UserLocaleListener; | 12 | use Wallabag\CoreBundle\Event\Listener\UserLocaleListener; |
12 | use Wallabag\UserBundle\Entity\User; | 13 | use Wallabag\UserBundle\Entity\User; |
13 | 14 | ||
14 | class UserLocaleListenerTest extends \PHPUnit_Framework_TestCase | 15 | class UserLocaleListenerTest extends TestCase |
15 | { | 16 | { |
16 | public function testWithLanguage() | 17 | public function testWithLanguage() |
17 | { | 18 | { |
diff --git a/tests/Wallabag/CoreBundle/Event/Subscriber/TablePrefixSubscriberTest.php b/tests/Wallabag/CoreBundle/Event/Subscriber/TablePrefixSubscriberTest.php index 64e3c6d9..06f85237 100644 --- a/tests/Wallabag/CoreBundle/Event/Subscriber/TablePrefixSubscriberTest.php +++ b/tests/Wallabag/CoreBundle/Event/Subscriber/TablePrefixSubscriberTest.php | |||
@@ -5,9 +5,10 @@ namespace Tests\Wallabag\CoreBundle\Event\Subscriber; | |||
5 | use Doctrine\Common\EventManager; | 5 | use Doctrine\Common\EventManager; |
6 | use Doctrine\ORM\Event\LoadClassMetadataEventArgs; | 6 | use Doctrine\ORM\Event\LoadClassMetadataEventArgs; |
7 | use Doctrine\ORM\Mapping\ClassMetadata; | 7 | use Doctrine\ORM\Mapping\ClassMetadata; |
8 | use PHPUnit\Framework\TestCase; | ||
8 | use Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber; | 9 | use Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber; |
9 | 10 | ||
10 | class TablePrefixSubscriberTest extends \PHPUnit_Framework_TestCase | 11 | class TablePrefixSubscriberTest extends TestCase |
11 | { | 12 | { |
12 | public function dataForPrefix() | 13 | public function dataForPrefix() |
13 | { | 14 | { |
diff --git a/tests/Wallabag/CoreBundle/Form/DataTransformer/StringToListTransformerTest.php b/tests/Wallabag/CoreBundle/Form/DataTransformer/StringToListTransformerTest.php index 0ec98c1f..ef058a8c 100644 --- a/tests/Wallabag/CoreBundle/Form/DataTransformer/StringToListTransformerTest.php +++ b/tests/Wallabag/CoreBundle/Form/DataTransformer/StringToListTransformerTest.php | |||
@@ -2,9 +2,10 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Form\DataTransformer; | 3 | namespace Tests\Wallabag\CoreBundle\Form\DataTransformer; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Wallabag\CoreBundle\Form\DataTransformer\StringToListTransformer; | 6 | use Wallabag\CoreBundle\Form\DataTransformer\StringToListTransformer; |
6 | 7 | ||
7 | class StringToListTransformerTest extends \PHPUnit_Framework_TestCase | 8 | class StringToListTransformerTest extends TestCase |
8 | { | 9 | { |
9 | /** | 10 | /** |
10 | * @dataProvider transformProvider | 11 | * @dataProvider transformProvider |
diff --git a/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php b/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php index 5aee9f5c..1173fc3d 100644 --- a/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php +++ b/tests/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilderTest.php | |||
@@ -5,11 +5,12 @@ namespace Tests\Wallabag\CoreBundle\GuzzleSiteAuthenticator; | |||
5 | use Graby\SiteConfig\SiteConfig as GrabySiteConfig; | 5 | use Graby\SiteConfig\SiteConfig as GrabySiteConfig; |
6 | use Monolog\Handler\TestHandler; | 6 | use Monolog\Handler\TestHandler; |
7 | use Monolog\Logger; | 7 | use Monolog\Logger; |
8 | use PHPUnit\Framework\TestCase; | ||
8 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; | 9 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; |
9 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | 10 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; |
10 | use Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder; | 11 | use Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder; |
11 | 12 | ||
12 | class GrabySiteConfigBuilderTest extends \PHPUnit_Framework_TestCase | 13 | class GrabySiteConfigBuilderTest extends TestCase |
13 | { | 14 | { |
14 | /** @var \Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder */ | 15 | /** @var \Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder */ |
15 | protected $builder; | 16 | protected $builder; |
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index 5c99e461..398592e1 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | |||
@@ -5,6 +5,7 @@ namespace Tests\Wallabag\CoreBundle\Helper; | |||
5 | use Graby\Graby; | 5 | use Graby\Graby; |
6 | use Monolog\Handler\TestHandler; | 6 | use Monolog\Handler\TestHandler; |
7 | use Monolog\Logger; | 7 | use Monolog\Logger; |
8 | use PHPUnit\Framework\TestCase; | ||
8 | use Psr\Log\NullLogger; | 9 | use Psr\Log\NullLogger; |
9 | use Symfony\Component\Validator\ConstraintViolation; | 10 | use Symfony\Component\Validator\ConstraintViolation; |
10 | use Symfony\Component\Validator\ConstraintViolationList; | 11 | use Symfony\Component\Validator\ConstraintViolationList; |
@@ -15,7 +16,7 @@ use Wallabag\CoreBundle\Helper\ContentProxy; | |||
15 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; | 16 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; |
16 | use Wallabag\UserBundle\Entity\User; | 17 | use Wallabag\UserBundle\Entity\User; |
17 | 18 | ||
18 | class ContentProxyTest extends \PHPUnit_Framework_TestCase | 19 | class ContentProxyTest extends TestCase |
19 | { | 20 | { |
20 | private $fetchingErrorMessage = 'wallabag can\'t retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>.'; | 21 | private $fetchingErrorMessage = 'wallabag can\'t retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>.'; |
21 | 22 | ||
@@ -220,7 +221,7 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase | |||
220 | $tagger->expects($this->once()) | 221 | $tagger->expects($this->once()) |
221 | ->method('tag'); | 222 | ->method('tag'); |
222 | 223 | ||
223 | $validator = $this->getValidator(); | 224 | $validator = $this->getValidator(false); |
224 | $validator->expects($this->once()) | 225 | $validator->expects($this->once()) |
225 | ->method('validate') | 226 | ->method('validate') |
226 | ->willReturn(new ConstraintViolationList([new ConstraintViolation('oops', 'oops', [], 'oops', 'language', 'dontexist')])); | 227 | ->willReturn(new ConstraintViolationList([new ConstraintViolation('oops', 'oops', [], 'oops', 'language', 'dontexist')])); |
@@ -261,7 +262,7 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase | |||
261 | $tagger->expects($this->once()) | 262 | $tagger->expects($this->once()) |
262 | ->method('tag'); | 263 | ->method('tag'); |
263 | 264 | ||
264 | $validator = $this->getValidator(); | 265 | $validator = $this->getValidator(false); |
265 | $validator->expects($this->exactly(2)) | 266 | $validator->expects($this->exactly(2)) |
266 | ->method('validate') | 267 | ->method('validate') |
267 | ->will($this->onConsecutiveCalls( | 268 | ->will($this->onConsecutiveCalls( |
@@ -544,11 +545,19 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase | |||
544 | return new NullLogger(); | 545 | return new NullLogger(); |
545 | } | 546 | } |
546 | 547 | ||
547 | private function getValidator() | 548 | private function getValidator($withDefaultMock = true) |
548 | { | 549 | { |
549 | return $this->getMockBuilder(RecursiveValidator::class) | 550 | $mock = $this->getMockBuilder(RecursiveValidator::class) |
550 | ->setMethods(['validate']) | 551 | ->setMethods(['validate']) |
551 | ->disableOriginalConstructor() | 552 | ->disableOriginalConstructor() |
552 | ->getMock(); | 553 | ->getMock(); |
554 | |||
555 | if ($withDefaultMock) { | ||
556 | $mock->expects($this->any()) | ||
557 | ->method('validate') | ||
558 | ->willReturn(new ConstraintViolationList()); | ||
559 | } | ||
560 | |||
561 | return $mock; | ||
553 | } | 562 | } |
554 | } | 563 | } |
diff --git a/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php b/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php index 782c29c3..7398f235 100644 --- a/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php | |||
@@ -4,10 +4,11 @@ namespace Tests\Wallabag\CoreBundle\Helper; | |||
4 | 4 | ||
5 | use Monolog\Handler\TestHandler; | 5 | use Monolog\Handler\TestHandler; |
6 | use Monolog\Logger; | 6 | use Monolog\Logger; |
7 | use PHPUnit\Framework\TestCase; | ||
7 | use Psr\Log\NullLogger; | 8 | use Psr\Log\NullLogger; |
8 | use Wallabag\CoreBundle\Helper\CryptoProxy; | 9 | use Wallabag\CoreBundle\Helper\CryptoProxy; |
9 | 10 | ||
10 | class CryptoProxyTest extends \PHPUnit_Framework_TestCase | 11 | class CryptoProxyTest extends TestCase |
11 | { | 12 | { |
12 | public function testCrypto() | 13 | public function testCrypto() |
13 | { | 14 | { |
diff --git a/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php b/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php index c61f65d0..0e1d296b 100644 --- a/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php +++ b/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php | |||
@@ -8,9 +8,10 @@ use GuzzleHttp\Stream\Stream; | |||
8 | use GuzzleHttp\Subscriber\Mock; | 8 | use GuzzleHttp\Subscriber\Mock; |
9 | use Monolog\Handler\TestHandler; | 9 | use Monolog\Handler\TestHandler; |
10 | use Monolog\Logger; | 10 | use Monolog\Logger; |
11 | use PHPUnit\Framework\TestCase; | ||
11 | use Wallabag\CoreBundle\Helper\DownloadImages; | 12 | use Wallabag\CoreBundle\Helper\DownloadImages; |
12 | 13 | ||
13 | class DownloadImagesTest extends \PHPUnit_Framework_TestCase | 14 | class DownloadImagesTest extends TestCase |
14 | { | 15 | { |
15 | public function dataForSuccessImage() | 16 | public function dataForSuccessImage() |
16 | { | 17 | { |
diff --git a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php index 7fd2ea2b..04e1a59c 100644 --- a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php +++ b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php | |||
@@ -2,13 +2,14 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Helper; | 3 | namespace Tests\Wallabag\CoreBundle\Helper; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; | 6 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; |
6 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | 7 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; |
7 | use Wallabag\CoreBundle\Entity\Config; | 8 | use Wallabag\CoreBundle\Entity\Config; |
8 | use Wallabag\CoreBundle\Helper\Redirect; | 9 | use Wallabag\CoreBundle\Helper\Redirect; |
9 | use Wallabag\UserBundle\Entity\User; | 10 | use Wallabag\UserBundle\Entity\User; |
10 | 11 | ||
11 | class RedirectTest extends \PHPUnit_Framework_TestCase | 12 | class RedirectTest extends TestCase |
12 | { | 13 | { |
13 | /** @var \PHPUnit_Framework_MockObject_MockObject */ | 14 | /** @var \PHPUnit_Framework_MockObject_MockObject */ |
14 | private $routerMock; | 15 | private $routerMock; |
diff --git a/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php b/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php index c31af680..74b28bbb 100644 --- a/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php +++ b/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php | |||
@@ -4,6 +4,7 @@ namespace Tests\Wallabag\CoreBundle\Helper; | |||
4 | 4 | ||
5 | use Monolog\Handler\TestHandler; | 5 | use Monolog\Handler\TestHandler; |
6 | use Monolog\Logger; | 6 | use Monolog\Logger; |
7 | use PHPUnit\Framework\TestCase; | ||
7 | use Wallabag\CoreBundle\Entity\Config; | 8 | use Wallabag\CoreBundle\Entity\Config; |
8 | use Wallabag\CoreBundle\Entity\Entry; | 9 | use Wallabag\CoreBundle\Entity\Entry; |
9 | use Wallabag\CoreBundle\Entity\Tag; | 10 | use Wallabag\CoreBundle\Entity\Tag; |
@@ -11,7 +12,7 @@ use Wallabag\CoreBundle\Entity\TaggingRule; | |||
11 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; | 12 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; |
12 | use Wallabag\UserBundle\Entity\User; | 13 | use Wallabag\UserBundle\Entity\User; |
13 | 14 | ||
14 | class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase | 15 | class RuleBasedTaggerTest extends TestCase |
15 | { | 16 | { |
16 | private $rulerz; | 17 | private $rulerz; |
17 | private $tagRepository; | 18 | private $tagRepository; |
diff --git a/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php b/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php index 475cd349..1285c99c 100644 --- a/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php +++ b/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php | |||
@@ -2,13 +2,14 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Helper; | 3 | namespace Tests\Wallabag\CoreBundle\Helper; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Wallabag\CoreBundle\Entity\Entry; | 6 | use Wallabag\CoreBundle\Entity\Entry; |
6 | use Wallabag\CoreBundle\Entity\Tag; | 7 | use Wallabag\CoreBundle\Entity\Tag; |
7 | use Wallabag\CoreBundle\Helper\TagsAssigner; | 8 | use Wallabag\CoreBundle\Helper\TagsAssigner; |
8 | use Wallabag\CoreBundle\Repository\TagRepository; | 9 | use Wallabag\CoreBundle\Repository\TagRepository; |
9 | use Wallabag\UserBundle\Entity\User; | 10 | use Wallabag\UserBundle\Entity\User; |
10 | 11 | ||
11 | class TagsAssignerTest extends \PHPUnit_Framework_TestCase | 12 | class TagsAssignerTest extends TestCase |
12 | { | 13 | { |
13 | public function testAssignTagsWithArrayAndExtraSpaces() | 14 | public function testAssignTagsWithArrayAndExtraSpaces() |
14 | { | 15 | { |
diff --git a/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php b/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php index 74c645ef..b044a700 100644 --- a/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php +++ b/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php | |||
@@ -2,12 +2,13 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Command; | 3 | namespace Tests\Wallabag\CoreBundle\Command; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
6 | use Symfony\Component\HttpFoundation\Request; | 7 | use Symfony\Component\HttpFoundation\Request; |
7 | use Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter; | 8 | use Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter; |
8 | use Wallabag\UserBundle\Entity\User; | 9 | use Wallabag\UserBundle\Entity\User; |
9 | 10 | ||
10 | class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase | 11 | class UsernameRssTokenConverterTest extends TestCase |
11 | { | 12 | { |
12 | public function testSupportsWithNoRegistry() | 13 | public function testSupportsWithNoRegistry() |
13 | { | 14 | { |
diff --git a/tests/Wallabag/CoreBundle/Tools/UtilsTest.php b/tests/Wallabag/CoreBundle/Tools/UtilsTest.php index 4521e485..347589dc 100644 --- a/tests/Wallabag/CoreBundle/Tools/UtilsTest.php +++ b/tests/Wallabag/CoreBundle/Tools/UtilsTest.php | |||
@@ -2,10 +2,11 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Tools; | 3 | namespace Tests\Wallabag\CoreBundle\Tools; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Symfony\Component\Finder\Finder; | 6 | use Symfony\Component\Finder\Finder; |
6 | use Wallabag\CoreBundle\Tools\Utils; | 7 | use Wallabag\CoreBundle\Tools\Utils; |
7 | 8 | ||
8 | class UtilsTest extends \PHPUnit_Framework_TestCase | 9 | class UtilsTest extends TestCase |
9 | { | 10 | { |
10 | /** | 11 | /** |
11 | * @dataProvider examples | 12 | * @dataProvider examples |
diff --git a/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php b/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php index 82336060..bb92f745 100644 --- a/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php +++ b/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php | |||
@@ -2,9 +2,10 @@ | |||
2 | 2 | ||
3 | namespace Tests\Wallabag\CoreBundle\Twig; | 3 | namespace Tests\Wallabag\CoreBundle\Twig; |
4 | 4 | ||
5 | use PHPUnit\Framework\TestCase; | ||
5 | use Wallabag\CoreBundle\Twig\WallabagExtension; | 6 | use Wallabag\CoreBundle\Twig\WallabagExtension; |
6 | 7 | ||
7 | class WallabagExtensionTest extends \PHPUnit_Framework_TestCase | 8 | class WallabagExtensionTest extends TestCase |
8 | { | 9 | { |
9 | public function testRemoveWww() | 10 | public function testRemoveWww() |
10 | { | 11 | { |