diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-12-16 22:17:42 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-12-18 13:29:33 +0100 |
commit | bd91bd5c32dcec997e1cc1aff93f585dac093742 (patch) | |
tree | 02be54155fe8ffb87d73a225bec6555f86056210 /tests/Wallabag/CoreBundle/Helper | |
parent | 3ccf086391588b1eb0f6d7bcc420ed529f7fdd8f (diff) | |
download | wallabag-bd91bd5c32dcec997e1cc1aff93f585dac093742.tar.gz wallabag-bd91bd5c32dcec997e1cc1aff93f585dac093742.tar.zst wallabag-bd91bd5c32dcec997e1cc1aff93f585dac093742.zip |
Use namespaced PHPUnit classes
Diffstat (limited to 'tests/Wallabag/CoreBundle/Helper')
6 files changed, 12 insertions, 6 deletions
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index 5c99e461..9a656dad 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 | ||
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 | { |