From bd91bd5c32dcec997e1cc1aff93f585dac093742 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sat, 16 Dec 2017 22:17:42 +0100 Subject: [PATCH] Use namespaced PHPUnit classes --- tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | 3 ++- tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php | 3 ++- tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php | 3 ++- tests/Wallabag/CoreBundle/Helper/RedirectTest.php | 3 ++- tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php | 3 ++- tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php | 3 ++- .../ParamConverter/UsernameRssTokenConverterTest.php | 3 ++- tests/Wallabag/CoreBundle/Tools/UtilsTest.php | 3 ++- tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php | 3 ++- tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php | 3 ++- .../Wallabag/ImportBundle/Consumer/RedisEntryConsumerTest.php | 3 ++- tests/Wallabag/ImportBundle/Import/ChromeImportTest.php | 3 ++- tests/Wallabag/ImportBundle/Import/FirefoxImportTest.php | 3 ++- tests/Wallabag/ImportBundle/Import/ImportChainTest.php | 3 ++- tests/Wallabag/ImportBundle/Import/ImportCompilerPassTest.php | 3 ++- tests/Wallabag/ImportBundle/Import/InstapaperImportTest.php | 3 ++- tests/Wallabag/ImportBundle/Import/PocketImportTest.php | 3 ++- tests/Wallabag/ImportBundle/Import/ReadabilityImportTest.php | 3 ++- tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php | 3 ++- tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php | 3 ++- .../EventListener/AuthenticationFailureListenerTest.php | 3 ++- .../UserBundle/EventListener/CreateConfigListenerTest.php | 3 ++- tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php | 3 ++- 23 files changed, 46 insertions(+), 23 deletions(-) diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index 5c99e4618..9a656dadd 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php @@ -5,6 +5,7 @@ namespace Tests\Wallabag\CoreBundle\Helper; use Graby\Graby; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Psr\Log\NullLogger; use Symfony\Component\Validator\ConstraintViolation; use Symfony\Component\Validator\ConstraintViolationList; @@ -15,7 +16,7 @@ use Wallabag\CoreBundle\Helper\ContentProxy; use Wallabag\CoreBundle\Helper\RuleBasedTagger; use Wallabag\UserBundle\Entity\User; -class ContentProxyTest extends \PHPUnit_Framework_TestCase +class ContentProxyTest extends TestCase { private $fetchingErrorMessage = 'wallabag can\'t retrieve contents for this article. Please troubleshoot this issue.'; diff --git a/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php b/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php index 782c29c3b..7398f235a 100644 --- a/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/CryptoProxyTest.php @@ -4,10 +4,11 @@ namespace Tests\Wallabag\CoreBundle\Helper; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Psr\Log\NullLogger; use Wallabag\CoreBundle\Helper\CryptoProxy; -class CryptoProxyTest extends \PHPUnit_Framework_TestCase +class CryptoProxyTest extends TestCase { public function testCrypto() { diff --git a/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php b/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php index c61f65d03..0e1d296b0 100644 --- a/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php +++ b/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php @@ -8,9 +8,10 @@ use GuzzleHttp\Stream\Stream; use GuzzleHttp\Subscriber\Mock; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Wallabag\CoreBundle\Helper\DownloadImages; -class DownloadImagesTest extends \PHPUnit_Framework_TestCase +class DownloadImagesTest extends TestCase { public function dataForSuccessImage() { diff --git a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php index 7fd2ea2b6..04e1a59c8 100644 --- a/tests/Wallabag/CoreBundle/Helper/RedirectTest.php +++ b/tests/Wallabag/CoreBundle/Helper/RedirectTest.php @@ -2,13 +2,14 @@ namespace Tests\Wallabag\CoreBundle\Helper; +use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Helper\Redirect; use Wallabag\UserBundle\Entity\User; -class RedirectTest extends \PHPUnit_Framework_TestCase +class RedirectTest extends TestCase { /** @var \PHPUnit_Framework_MockObject_MockObject */ private $routerMock; diff --git a/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php b/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php index c31af680a..74b28bbb8 100644 --- a/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php +++ b/tests/Wallabag/CoreBundle/Helper/RuleBasedTaggerTest.php @@ -4,6 +4,7 @@ namespace Tests\Wallabag\CoreBundle\Helper; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Tag; @@ -11,7 +12,7 @@ use Wallabag\CoreBundle\Entity\TaggingRule; use Wallabag\CoreBundle\Helper\RuleBasedTagger; use Wallabag\UserBundle\Entity\User; -class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase +class RuleBasedTaggerTest extends TestCase { private $rulerz; private $tagRepository; diff --git a/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php b/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php index 475cd3497..1285c99c6 100644 --- a/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php +++ b/tests/Wallabag/CoreBundle/Helper/TagsAssignerTest.php @@ -2,13 +2,14 @@ namespace Tests\Wallabag\CoreBundle\Helper; +use PHPUnit\Framework\TestCase; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Tag; use Wallabag\CoreBundle\Helper\TagsAssigner; use Wallabag\CoreBundle\Repository\TagRepository; use Wallabag\UserBundle\Entity\User; -class TagsAssignerTest extends \PHPUnit_Framework_TestCase +class TagsAssignerTest extends TestCase { public function testAssignTagsWithArrayAndExtraSpaces() { diff --git a/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php b/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php index 74c645ef9..b044a700e 100644 --- a/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php +++ b/tests/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverterTest.php @@ -2,12 +2,13 @@ namespace Tests\Wallabag\CoreBundle\Command; +use PHPUnit\Framework\TestCase; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; use Symfony\Component\HttpFoundation\Request; use Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter; use Wallabag\UserBundle\Entity\User; -class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase +class UsernameRssTokenConverterTest extends TestCase { public function testSupportsWithNoRegistry() { diff --git a/tests/Wallabag/CoreBundle/Tools/UtilsTest.php b/tests/Wallabag/CoreBundle/Tools/UtilsTest.php index 4521e485b..347589dc0 100644 --- a/tests/Wallabag/CoreBundle/Tools/UtilsTest.php +++ b/tests/Wallabag/CoreBundle/Tools/UtilsTest.php @@ -2,10 +2,11 @@ namespace Tests\Wallabag\CoreBundle\Tools; +use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Finder; use Wallabag\CoreBundle\Tools\Utils; -class UtilsTest extends \PHPUnit_Framework_TestCase +class UtilsTest extends TestCase { /** * @dataProvider examples diff --git a/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php b/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php index 82336060f..bb92f7458 100644 --- a/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php +++ b/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php @@ -2,9 +2,10 @@ namespace Tests\Wallabag\CoreBundle\Twig; +use PHPUnit\Framework\TestCase; use Wallabag\CoreBundle\Twig\WallabagExtension; -class WallabagExtensionTest extends \PHPUnit_Framework_TestCase +class WallabagExtensionTest extends TestCase { public function testRemoveWww() { diff --git a/tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php b/tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php index 52b98a0bc..b2141c040 100644 --- a/tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php +++ b/tests/Wallabag/ImportBundle/Consumer/AMQPEntryConsumerTest.php @@ -3,11 +3,12 @@ namespace Tests\Wallabag\ImportBundle\Consumer\AMQP; use PhpAmqpLib\Message\AMQPMessage; +use PHPUnit\Framework\TestCase; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\ImportBundle\Consumer\AMQPEntryConsumer; use Wallabag\UserBundle\Entity\User; -class AMQPEntryConsumerTest extends \PHPUnit_Framework_TestCase +class AMQPEntryConsumerTest extends TestCase { public function testMessageOk() { diff --git a/tests/Wallabag/ImportBundle/Consumer/RedisEntryConsumerTest.php b/tests/Wallabag/ImportBundle/Consumer/RedisEntryConsumerTest.php index 9506ff639..61337e47e 100644 --- a/tests/Wallabag/ImportBundle/Consumer/RedisEntryConsumerTest.php +++ b/tests/Wallabag/ImportBundle/Consumer/RedisEntryConsumerTest.php @@ -2,11 +2,12 @@ namespace Tests\Wallabag\ImportBundle\Consumer\AMQP; +use PHPUnit\Framework\TestCase; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\ImportBundle\Consumer\RedisEntryConsumer; use Wallabag\UserBundle\Entity\User; -class RedisEntryConsumerTest extends \PHPUnit_Framework_TestCase +class RedisEntryConsumerTest extends TestCase { public function testMessageOk() { diff --git a/tests/Wallabag/ImportBundle/Import/ChromeImportTest.php b/tests/Wallabag/ImportBundle/Import/ChromeImportTest.php index 5559ac7ed..12a789e04 100644 --- a/tests/Wallabag/ImportBundle/Import/ChromeImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/ChromeImportTest.php @@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; use M6Web\Component\RedisMock\RedisMockFactory; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Simpleue\Queue\RedisQueue; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\ImportBundle\Import\ChromeImport; use Wallabag\ImportBundle\Redis\Producer; use Wallabag\UserBundle\Entity\User; -class ChromeImportTest extends \PHPUnit_Framework_TestCase +class ChromeImportTest extends TestCase { protected $user; protected $em; diff --git a/tests/Wallabag/ImportBundle/Import/FirefoxImportTest.php b/tests/Wallabag/ImportBundle/Import/FirefoxImportTest.php index a1783bfcb..eaf693775 100644 --- a/tests/Wallabag/ImportBundle/Import/FirefoxImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/FirefoxImportTest.php @@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; use M6Web\Component\RedisMock\RedisMockFactory; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Simpleue\Queue\RedisQueue; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\ImportBundle\Import\FirefoxImport; use Wallabag\ImportBundle\Redis\Producer; use Wallabag\UserBundle\Entity\User; -class FirefoxImportTest extends \PHPUnit_Framework_TestCase +class FirefoxImportTest extends TestCase { protected $user; protected $em; diff --git a/tests/Wallabag/ImportBundle/Import/ImportChainTest.php b/tests/Wallabag/ImportBundle/Import/ImportChainTest.php index a9a9915e9..f27826f40 100644 --- a/tests/Wallabag/ImportBundle/Import/ImportChainTest.php +++ b/tests/Wallabag/ImportBundle/Import/ImportChainTest.php @@ -2,9 +2,10 @@ namespace Tests\Wallabag\ImportBundle\Import; +use PHPUnit\Framework\TestCase; use Wallabag\ImportBundle\Import\ImportChain; -class ImportChainTest extends \PHPUnit_Framework_TestCase +class ImportChainTest extends TestCase { public function testGetAll() { diff --git a/tests/Wallabag/ImportBundle/Import/ImportCompilerPassTest.php b/tests/Wallabag/ImportBundle/Import/ImportCompilerPassTest.php index 207054f43..e0e90ae3e 100644 --- a/tests/Wallabag/ImportBundle/Import/ImportCompilerPassTest.php +++ b/tests/Wallabag/ImportBundle/Import/ImportCompilerPassTest.php @@ -2,10 +2,11 @@ namespace Tests\Wallabag\ImportBundle\Import; +use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Wallabag\ImportBundle\Import\ImportCompilerPass; -class ImportCompilerPassTest extends \PHPUnit_Framework_TestCase +class ImportCompilerPassTest extends TestCase { public function testProcessNoDefinition() { diff --git a/tests/Wallabag/ImportBundle/Import/InstapaperImportTest.php b/tests/Wallabag/ImportBundle/Import/InstapaperImportTest.php index 274dc3264..b5163fadb 100644 --- a/tests/Wallabag/ImportBundle/Import/InstapaperImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/InstapaperImportTest.php @@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; use M6Web\Component\RedisMock\RedisMockFactory; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Simpleue\Queue\RedisQueue; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\ImportBundle\Import\InstapaperImport; use Wallabag\ImportBundle\Redis\Producer; use Wallabag\UserBundle\Entity\User; -class InstapaperImportTest extends \PHPUnit_Framework_TestCase +class InstapaperImportTest extends TestCase { protected $user; protected $em; diff --git a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php index fe59f8674..baa5d9057 100644 --- a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php @@ -9,6 +9,7 @@ use GuzzleHttp\Subscriber\Mock; use M6Web\Component\RedisMock\RedisMockFactory; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Simpleue\Queue\RedisQueue; use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\Entry; @@ -16,7 +17,7 @@ use Wallabag\ImportBundle\Import\PocketImport; use Wallabag\ImportBundle\Redis\Producer; use Wallabag\UserBundle\Entity\User; -class PocketImportTest extends \PHPUnit_Framework_TestCase +class PocketImportTest extends TestCase { protected $token; protected $user; diff --git a/tests/Wallabag/ImportBundle/Import/ReadabilityImportTest.php b/tests/Wallabag/ImportBundle/Import/ReadabilityImportTest.php index 1822cdaaf..e55a56e02 100644 --- a/tests/Wallabag/ImportBundle/Import/ReadabilityImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/ReadabilityImportTest.php @@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; use M6Web\Component\RedisMock\RedisMockFactory; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Simpleue\Queue\RedisQueue; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\ImportBundle\Import\ReadabilityImport; use Wallabag\ImportBundle\Redis\Producer; use Wallabag\UserBundle\Entity\User; -class ReadabilityImportTest extends \PHPUnit_Framework_TestCase +class ReadabilityImportTest extends TestCase { protected $user; protected $em; diff --git a/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php b/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php index 822ad6949..4e9f472d2 100644 --- a/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/WallabagV1ImportTest.php @@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; use M6Web\Component\RedisMock\RedisMockFactory; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Simpleue\Queue\RedisQueue; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\ImportBundle\Import\WallabagV1Import; use Wallabag\ImportBundle\Redis\Producer; use Wallabag\UserBundle\Entity\User; -class WallabagV1ImportTest extends \PHPUnit_Framework_TestCase +class WallabagV1ImportTest extends TestCase { protected $user; protected $em; diff --git a/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php b/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php index fab50a450..68a5d1adf 100644 --- a/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php +++ b/tests/Wallabag/ImportBundle/Import/WallabagV2ImportTest.php @@ -5,13 +5,14 @@ namespace Tests\Wallabag\ImportBundle\Import; use M6Web\Component\RedisMock\RedisMockFactory; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Simpleue\Queue\RedisQueue; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\ImportBundle\Import\WallabagV2Import; use Wallabag\ImportBundle\Redis\Producer; use Wallabag\UserBundle\Entity\User; -class WallabagV2ImportTest extends \PHPUnit_Framework_TestCase +class WallabagV2ImportTest extends TestCase { protected $user; protected $em; diff --git a/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php b/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php index 9e33cdca0..6e37cfc48 100644 --- a/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php +++ b/tests/Wallabag/UserBundle/EventListener/AuthenticationFailureListenerTest.php @@ -4,6 +4,7 @@ namespace Tests\Wallabag\UserBundle\EventListener; use Monolog\Handler\TestHandler; use Monolog\Logger; +use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; @@ -11,7 +12,7 @@ use Symfony\Component\Security\Core\AuthenticationEvents; use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent; use Wallabag\UserBundle\EventListener\AuthenticationFailureListener; -class AuthenticationFailureListenerTest extends \PHPUnit_Framework_TestCase +class AuthenticationFailureListenerTest extends TestCase { private $requestStack; private $logHandler; diff --git a/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php b/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php index e5a145b83..2b540fdfe 100644 --- a/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php +++ b/tests/Wallabag/UserBundle/EventListener/CreateConfigListenerTest.php @@ -4,6 +4,7 @@ namespace Tests\Wallabag\UserBundle\EventListener; use FOS\UserBundle\Event\FilterUserResponseEvent; use FOS\UserBundle\FOSUserEvents; +use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -11,7 +12,7 @@ use Wallabag\CoreBundle\Entity\Config; use Wallabag\UserBundle\Entity\User; use Wallabag\UserBundle\EventListener\CreateConfigListener; -class CreateConfigListenerTest extends \PHPUnit_Framework_TestCase +class CreateConfigListenerTest extends TestCase { private $em; private $listener; diff --git a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php index 7381ccf12..f39fa60e6 100644 --- a/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php +++ b/tests/Wallabag/UserBundle/Mailer/AuthCodeMailerTest.php @@ -2,6 +2,7 @@ namespace Tests\Wallabag\UserBundle\Mailer; +use PHPUnit\Framework\TestCase; use Wallabag\UserBundle\Entity\User; use Wallabag\UserBundle\Mailer\AuthCodeMailer; @@ -21,7 +22,7 @@ final class CountableMemorySpool extends \Swift_MemorySpool implements \Countabl } } -class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase +class AuthCodeMailerTest extends TestCase { protected $mailer; protected $spool;