Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

unsatisfied expectation terminates suite

Open
#14 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
testing

Research direction

Start at the place where Mockery::close() is called and inspect how Mockery\Exception failures propagate through the Codeception module. Check the behavior of Codeception\Module::fail() and identify how the current test can fail without terminating the suite; done means one failed test does not stop the remaining suite.

Written by the indexing model from the issue text.

Description

When mockery expectations fail, the currently running suite terminates because of exception thrown. I think the good solution would be to catch Mockery\Exception\* and fail the current test only.

Tell me how to fail the current test from the place where Mockery::close() is called and I'll prepare a pull request. \Codeception\Module::fail() terminates the suite completely?

Dominant language
PHP
Stars
34
Forks
12
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Codeception/MockeryModule

All issues in Codeception/MockeryModule

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.