Completed
Branch develop (595b91)
by Jimmy
03:41
created
src/MailTracking.php 3 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @param string        $excerpt
96 96
      * @param Swift_Message $message
97 97
      *
98
-     * @return PHPUnit_Framework_TestCase $this
98
+     * @return MailTracking $this
99 99
      */
100 100
     protected function seeEmailContains($excerpt, Swift_Message $message = null)
101 101
     {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * @param string        $body
112 112
      * @param Swift_Message $message
113 113
      *
114
-     * @return PHPUnit_Framework_TestCase $this
114
+     * @return MailTracking $this
115 115
      */
116 116
     protected function seeEmailEquals($body, Swift_Message $message = null)
117 117
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param string        $sender
128 128
      * @param Swift_Message $message
129 129
      *
130
-     * @return PHPUnit_Framework_TestCase $this
130
+     * @return MailTracking $this
131 131
      */
132 132
     protected function seeEmailFrom($sender, Swift_Message $message = null)
133 133
     {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      *
144 144
      * @param integer $count
145 145
      *
146
-     * @return PHPUnit_Framework_TestCase $this
146
+     * @return MailTracking $this
147 147
      */
148 148
     protected function seeEmailsSent($count)
149 149
     {
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @param string        $subject
161 161
      * @param Swift_Message $message
162 162
      *
163
-     * @return PHPUnit_Framework_TestCase $this
163
+     * @return MailTracking $this
164 164
      */
165 165
     protected function seeEmailSubject($subject, Swift_Message $message = null)
166 166
     {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      * @param string        $recipient
178 178
      * @param Swift_Message $message
179 179
      *
180
-     * @return PHPUnit_Framework_TestCase $this
180
+     * @return MailTracking $this
181 181
      */
182 182
     protected function seeEmailTo($recipient, Swift_Message $message = null)
183 183
     {
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     /**
191 191
      * Assert that no emails were sent.
192 192
      *
193
-     * @return PHPUnit_Framework_TestCase $this
193
+     * @return MailTracking $this
194 194
      */
195 195
     protected function seeEmailWasNotSent()
196 196
     {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     /**
203 203
      * Assert that at least one email was sent.
204 204
      *
205
-     * @return PHPUnit_Framework_TestCase $this
205
+     * @return MailTracking $this
206 206
      */
207 207
     protected function seeEmailWasSent()
208 208
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     protected function seeEmailContains($excerpt, Swift_Message $message = null)
101 101
     {
102 102
         $this->assertContains($excerpt, $this->getEmail($message)
103
-                                             ->getBody(), "No email containing the provided body was found.");
103
+                                                ->getBody(), "No email containing the provided body was found.");
104 104
 
105 105
         return $this;
106 106
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     {
134 134
         // TODO: Allow from to be an array to check email & name
135 135
         $this->assertArrayHasKey($sender, (array)$this->getEmail($message)
136
-                                                      ->getFrom(), "No email was sent from $sender.");
136
+                                                        ->getFrom(), "No email was sent from $sender.");
137 137
 
138 138
         return $this;
139 139
     }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     {
167 167
         // TODO: Consider a subject contains like the message contains
168 168
         $this->assertEquals($subject, $this->getEmail($message)
169
-                                           ->getSubject(), "No email with a subject of $subject was found.");
169
+                                            ->getSubject(), "No email with a subject of $subject was found.");
170 170
 
171 171
         return $this;
172 172
     }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     protected function seeEmailTo($recipient, Swift_Message $message = null)
183 183
     {
184 184
         $this->assertArrayHasKey($recipient, (array)$this->getEmail($message)
185
-                                                         ->getTo(), "No email was sent to $recipient.");
185
+                                                            ->getTo(), "No email was sent to $recipient.");
186 186
 
187 187
         return $this;
188 188
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     protected function seeEmailFrom($sender, Swift_Message $message = null)
133 133
     {
134 134
         // TODO: Allow from to be an array to check email & name
135
-        $this->assertArrayHasKey($sender, (array)$this->getEmail($message)
135
+        $this->assertArrayHasKey($sender, (array) $this->getEmail($message)
136 136
                                                       ->getFrom(), "No email was sent from $sender.");
137 137
 
138 138
         return $this;
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      */
182 182
     protected function seeEmailTo($recipient, Swift_Message $message = null)
183 183
     {
184
-        $this->assertArrayHasKey($recipient, (array)$this->getEmail($message)
184
+        $this->assertArrayHasKey($recipient, (array) $this->getEmail($message)
185 185
                                                          ->getTo(), "No email was sent to $recipient.");
186 186
 
187 187
         return $this;
Please login to merge, or discard this patch.