PHPackages                             mailcare/codeception-module-mailcare - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. mailcare/codeception-module-mailcare

ActiveLibrary[Testing &amp; Quality](/categories/testing)

mailcare/codeception-module-mailcare
====================================

MailCare module for Codeception

1.0(6y ago)39MITPHPPHP ^7.2

Since Dec 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mailcare/codeception-module-mailcare)[ Packagist](https://packagist.org/packages/mailcare/codeception-module-mailcare)[ Docs](https://codeception.mailcare.io/)[ RSS](/packages/mailcare-codeception-module-mailcare/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

codeception-module-mailcare
===========================

[](#codeception-module-mailcare)

MailCare module for Codeception

Installation
------------

[](#installation)

```
composer require "mailcare/codeception-module-mailcare"

```

Documentation
-------------

[](#documentation)

Module for testing receiving emails using [MailCare](https://mailcare.io).

### Configuration

[](#configuration)

- url *optional* - API url of your mailcare server (default: )
- login *optional* - login of your mailcare server
- password *optional* - password of your mailcare server
- timeoutInSeconds *optional* - Waits up to n seconds for an email to be received (default: 30 seconds)

#### Example

[](#example)

```
modules:
    enabled
        - MailCare:
            url: 'https://mailix.xyz/api'
            login: 'https://mailix.xyz/api'
            password: 'https://mailix.xyz/api'

```

### Criterias

[](#criterias)

- `inbox` Filter by inbox ().
- `sender` Filter by sender ().
- `subject` Filter by subject (Welcome).
- `since` Filter by createdAt (2018-01-19T12:23:27+00:00 or ISO 8601 durations).
- `search` Search by inbox or sender or subject (matching).
- `unread` Filter only by unread (true).
- `favorite` Filter only by favorite (true).

All criterias can be found in the [API Documentation of MailCare](https://mailcare.docs.apiary.io) except for page and limit.

Examples of `since` with ISO 8601 durations:

- P1D: one-day duration
- PT1M: one-minute duration (note the time designator, T, that precedes the time value)

### Actions

[](#actions)

#### seeEmailCount

[](#seeemailcount)

Checks that the email count equals expected value. Waits up to $timeout seconds for the given email to be received.

```
$I->seeEmailCount(2, [
    'inbox' => 'john@example.org',
    'sender' => 'no-reply@company.com',
    'subject' => 'Welcome John!',
    'since' => 'PT2M',
], 30);
```

- `param int` $expectedCount
- `param array` $criterias
- `param int` $timeoutInSeconds (optional)

#### seeEmail

[](#seeemail)

Checks that the given email exists. Waits up to $timeout seconds for the given email to be received.

```
$I->seeEmail([
    'inbox' => 'john@example.org',
    'sender' => 'no-reply@company.com',
    'subject' => 'Welcome John!',
    'since' => 'PT2M',
], 30);
```

- `param array` $criterias
- `param int` $timeoutInSeconds (optional)

#### dontSeeEmail

[](#dontseeemail)

Opposite to seeEmail.

```
$I->dontSeeEmail([
    'inbox' => 'john@example.org',
    'since' => 'PT2M',
], 30);
```

- `param array` $criterias
- `param int` $timeoutInSeconds (optional)

#### grabLinksInLastEmail

[](#grablinksinlastemail)

In the last email, grabs all the links Waits up to $timeout seconds for the given email to be received.

```
$I->grabLinksInLastEmail([
    'inbox' => 'john@example.org',
    'since' => 'PT2M',
], 30);
```

- `param array` $criterias
- `param int` $timeoutInSeconds (optional)
- `return array` \['', ''\]

#### grabTextInLastEmail

[](#grabtextinlastemail)

In the last email, grabs all the text corresponding to a regex. Waits up to $timeout seconds for the given email to be received.

```
$I->grabTextInLastEmail('#Password: (?\S+)#', [
    'inbox' => 'john@example.org',
    'subject' => 'Your credentials',
    'since' => 'PT2M',
], 30);
```

- `param string` $regex
- `param array` $criterias
- `param int` $timeoutInSeconds (optional)
- `return array` matches from preg\_match\_all

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2329d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1255561?v=4)[Vincent Dauce](/maintainers/eXorus)[@eXorus](https://github.com/eXorus)

---

Top Contributors

[![eXorus](https://avatars.githubusercontent.com/u/1255561?v=4)](https://github.com/eXorus "eXorus (26 commits)")

---

Tags

codeceptioncodeception-modulehacktoberfestmailmailcaretestingtestingcodeceptionmailcodeception-modulemailcare

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mailcare-codeception-module-mailcare/health.svg)

```
[![Health](https://phpackages.com/badges/mailcare-codeception-module-mailcare/health.svg)](https://phpackages.com/packages/mailcare-codeception-module-mailcare)
```

###  Alternatives

[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[allure-framework/allure-codeception

Allure Codeception integration

5212.1M7](/packages/allure-framework-allure-codeception)[contributte/codeception

Integration of Nette framework to Codeception.

27886.9k1](/packages/contributte-codeception)[jayhealey/webception

Web Interface for running Codeception tests.

19110.7k](/packages/jayhealey-webception)[neronmoon/teamcity-codeception

Integrating codeception builds with codeception

14346.2k](/packages/neronmoon-teamcity-codeception)[docler-labs/codeception-slim-module

Codeception Module for Slim framework.

13178.0k1](/packages/docler-labs-codeception-slim-module)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
