aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/UserBundle/Mailer/CountableMemorySpool.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-01-17 14:28:05 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-01-18 15:25:50 +0100
commit1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f (patch)
treeb4f38bf4a01580f5f7218440e7054688d7178e53 /tests/Wallabag/UserBundle/Mailer/CountableMemorySpool.php
parent8445ad4790ff4f3f9759f9bfa0d503ad5654e30e (diff)
downloadwallabag-1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f.tar.gz
wallabag-1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f.tar.zst
wallabag-1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f.zip
Enable PHPStan
- Fix error for level 0 & 1 (level 7 has 699 errors...) - Add `updated_at` to site_credential (so the `timestamps()` method applies correctly)
Diffstat (limited to 'tests/Wallabag/UserBundle/Mailer/CountableMemorySpool.php')
-rw-r--r--tests/Wallabag/UserBundle/Mailer/CountableMemorySpool.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/Wallabag/UserBundle/Mailer/CountableMemorySpool.php b/tests/Wallabag/UserBundle/Mailer/CountableMemorySpool.php
new file mode 100644
index 00000000..53f240a1
--- /dev/null
+++ b/tests/Wallabag/UserBundle/Mailer/CountableMemorySpool.php
@@ -0,0 +1,19 @@
1<?php
2
3namespace Tests\Wallabag\UserBundle\Mailer;
4
5/**
6 * @see https://www.pmg.com/blog/integration-testing-swift-mailer/
7 */
8final 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}