Skip to content

Commit

Permalink
Removed Mockery integration
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Mar 12, 2024
1 parent ec8608c commit c27b6f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
...

## [1.0.2] - 2024-03-12
### Changed
- Removed Mockery integration, that was added by mistake.

## [1.0.1] - 2024-03-03
### Added
- Added compatibility classes for code coverage.
Expand Down
22 changes: 0 additions & 22 deletions src/PHPUnitCompat/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,28 +114,6 @@ protected function onNotSuccessfulTestCompat($e)

}

/**
* @after
* @codeCoverageIgnore
* @internal
*/
protected function verifyMockeryExpectations()
{
if ( !\class_exists('Mockery') ) {
return;
}

// Add Mockery expectations to assertion count.
$container = \Mockery::getContainer();

if ( $container !== null ) {
$this->addToAssertionCount($container->mockery_getExpectationCount());
}

// Verify Mockery expectations.
\Mockery::close();
}

}

if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '5.0.0', '<') ) {
Expand Down

0 comments on commit c27b6f1

Please sign in to comment.