aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/UserBundle/Mailer/CountableMemorySpool.php
blob: 53f240a1d5d5782b4edf5a7a6496b46b077cae3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Tests\Wallabag\UserBundle\Mailer;

/**
 * @see https://www.pmg.com/blog/integration-testing-swift-mailer/
 */
final class CountableMemorySpool extends \Swift_MemorySpool implements \Countable
{
    public function count()
    {
        return \count($this->messages);
    }

    public function getMessages()
    {
        return $this->messages;
    }
}