]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | namespace Tests\Wallabag\UserBundle\Mailer; | |
4 | ||
5 | /** | |
6 | * @see https://www.pmg.com/blog/integration-testing-swift-mailer/ | |
7 | */ | |
8 | final class CountableMemorySpool extends \Swift_MemorySpool implements \Countable | |
9 | { | |
10 | public function count() | |
11 | { | |
12 | return \count($this->messages); | |
13 | } | |
14 | ||
15 | public function getMessages() | |
16 | { | |
17 | return $this->messages; | |
18 | } | |
19 | } |