comicrelief/guerrillamail 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

comicrelief/guerrillamail

Composer 安装命令:

composer require comicrelief/guerrillamail

包简介

A simple GuerrillaMail library for PHP 5.4+

关键字:

README 文档

README

A Simple Library that utilises GuerrillaMail and provides some basic behat tests, that allow you to test succesful form submissions that send emails.

GuerrillaMail is a free service and is therefore perfect for email testing. This project was forked from taion809/GuerrillaMail and has been reduced marginally to just use CURL and to add some basic modeling to the GuerrillaMail API responses.

It is only recommended to use this library for testing in behat, as we will be undertaking more work to improve underlying API response modeling, however we will try to ensure compatibility with tests in tagged releases.

Installation

This library uses composer, you can install it using composer on the command like so,

composer require comicrelief/guerrillamail

Behat Tests

The follwing behat tests will check for emails delivered into the guerillamail account for 2 minues and will then fail.

Generate a new email address

The following will generate a new email inbox.

An email address is initially created when the package is instantiated, this therefore only needs to be run when running multiple tests on email fields.

Then I generate a new test email address

Fill a field with a test email address

The following will field a field with a test email address,

Then I fill in the "edit-email" field with a test email address

Check inbox for email with subject & body

The following will check the inbox to see if an email exists with 'test' in the body and 'Test' in the subject.

Then I should receive an email with "test" in the body and "Test" in the subject

Check inbox for email with subject content

The following will check the inbox to see if there is an email with 'Test' in the email subject.

Then I should receive an email with "Test" in the subject

Check inbox for email with body content

The following will check the inbox to see if there is an email with 'test' in the email body.

Then I should receive an email with "Test" in the body

License

This project is licensed under the MIT License.

统计信息

  • 总下载量: 9.48k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 4
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固