6
6
use Swift_Message ;
7
7
8
8
/**
9
- * Class MailTracking
9
+ * Trait MailTracking
10
10
*
11
11
* Trait to mixin to your test to allow for custom assertions when using PHPUnit with Laravel. This trait assumes
12
- * you are extending from the PHPUnit TestCase class (or a child of it).
12
+ * you are using it from the PHPUnit TestCase class (or a child class of it).
13
13
*
14
14
* This originally started out as a copy & paste from a video series that Jeffrey Way did on laracasts.com. If you do
15
15
* not have an account on Laracasts, you should get one. It is an amazing resource to learn from. We used that
@@ -28,7 +28,6 @@ trait MailTracking
28
28
// TODO: Add check for attachments (number of & name)
29
29
// TODO: Add check for header
30
30
// TODO: Add check for message type
31
- // TODO: Add check for Priority
32
31
// TODO: Allow checking specific message not just most recent one
33
32
34
33
/**
@@ -41,7 +40,7 @@ trait MailTracking
41
40
/**
42
41
* Register a listener for new emails.
43
42
*
44
- * This calls my PHPUnit before each test it runs. It registers the MailRecorder "plugin" with Swift, so that we
43
+ * This calls our PHPUnit before each test it runs. It registers the MailRecorder "plugin" with Swift, so that we
45
44
* can get a copy of each email that is sent during that test.
46
45
*
47
46
* @before
@@ -250,7 +249,7 @@ protected function seeEmailReplyTo($reply_to, Swift_Message $message = null)
250
249
*
251
250
* @param integer $count
252
251
*
253
- * @return TestCase $this
252
+ * @return MailTracking $this
254
253
* @deprecated in favor of seeEmailCountEquals
255
254
*/
256
255
protected function seeEmailsSent ($ count )
@@ -280,7 +279,7 @@ protected function seeEmailCountEquals($count)
280
279
* @param string $subject
281
280
* @param Swift_Message|null $message
282
281
*
283
- * @return TestCase $this
282
+ * @return MailTracking $this
284
283
* @deprecated in favor of seeEmailSubjectEquals
285
284
*/
286
285
protected function seeEmailSubject ($ subject , Swift_Message $ message = null )
0 commit comments