Package Data | |
---|---|
Maintainer Username: | siegerhansma |
Maintainer Contact: | siegerhansma@gmail.com (Sieger Hansma) |
Package Create Date: | 2016-05-23 |
Package Last Update: | 2016-06-19 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2025-02-11 15:02:29 |
Package Statistics | |
---|---|
Total Downloads: | 8 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A simple testcase for using Mailhog with Laravel.
Instead of extending the normal TestCase in your testclasses, now extend SiegerHansma\MailhogTestcase\MailhogTestcase. The MailhogTestcase class itself extends the base Laravel TestCase so you can still use all the methods that Laravel provides.
class RegisterTest extends MailhogTestCase
Mailhog running on another port? We've got you covered. Simply add a mailhogBasepath property to your test class, like so.
protected $mailhogBasepath = 'http://localhost:12345';
class RegisterTest extends MailhogTestCase {
Still todo. The main Testcase is already documented.