mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-13 03:06:27 +00:00
20 lines
372 B
PHP
20 lines
372 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|