66use Swift_Message ;
77
88/**
9- * Class MailTracking
9+ * Trait MailTracking
1010 *
1111 * 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).
1313 *
1414 * This originally started out as a copy & paste from a video series that Jeffrey Way did on laracasts.com. If you do
1515 * 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
2828 // TODO: Add check for attachments (number of & name)
2929 // TODO: Add check for header
3030 // TODO: Add check for message type
31- // TODO: Add check for Priority
3231 // TODO: Allow checking specific message not just most recent one
3332
3433 /**
@@ -41,7 +40,7 @@ trait MailTracking
4140 /**
4241 * Register a listener for new emails.
4342 *
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
4544 * can get a copy of each email that is sent during that test.
4645 *
4746 * @before
@@ -250,7 +249,7 @@ protected function seeEmailReplyTo($reply_to, Swift_Message $message = null)
250249 *
251250 * @param integer $count
252251 *
253- * @return TestCase $this
252+ * @return MailTracking $this
254253 * @deprecated in favor of seeEmailCountEquals
255254 */
256255 protected function seeEmailsSent ($ count )
@@ -280,7 +279,7 @@ protected function seeEmailCountEquals($count)
280279 * @param string $subject
281280 * @param Swift_Message|null $message
282281 *
283- * @return TestCase $this
282+ * @return MailTracking $this
284283 * @deprecated in favor of seeEmailSubjectEquals
285284 */
286285 protected function seeEmailSubject ($ subject , Swift_Message $ message = null )
0 commit comments