Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit f0ae60c

Browse files
committed
Extract out string concatenation
1 parent 6b11665 commit f0ae60c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MailTracking.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ protected function seeEmailTo($recipient, Swift_Message $message = null)
255255
*/
256256
protected function seeEmailWasNotSent()
257257
{
258-
$this->assertEmpty($this->emails, 'Did not expect any emails to have been sent, but found '.count($this->emails).'.');
258+
$emailsSent = count($this->emails);
259+
260+
$this->assertEmpty($this->emails, "Did not expect any emails to have been sent, but found $emailsSent");
259261

260262
return $this;
261263
}

0 commit comments

Comments
 (0)