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

Commit 3c95941

Browse files
authored
Merge pull request #80 from wells/bugfix-laravel-5-5
[Bugfix] Update InteractsWithMail to account for older versions of phpunit
2 parents be93ed5 + 95547fd commit 3c95941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Testing/InteractsWithMail.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getLastMessageFor($email)
5656
/** @before */
5757
public function hijackMail()
5858
{
59-
if ((float) $this->app->version() >= 5.5) {
59+
if (method_exists($this, 'afterApplicationCreated')) {
6060
$this->afterApplicationCreated(function () {
6161
$this->getMailer()->hijack();
6262
});

0 commit comments

Comments
 (0)