mougrim / phpunit-soft-mocks
Simple running phpunit with soft-mocks
Installs: 71
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/mougrim/phpunit-soft-mocks
Requires
- php: >=5.5.0
- badoo/soft-mocks: ^1.1.0
- phpunit/phpunit: ^4.0.0 || ^5.0.0
- vaimo/composer-patches: 3.4.3
Requires (Dev)
This package is auto-updated.
Last update: 2025-10-16 23:18:10 UTC
README
PHPUnit-soft-mocks is Badoo soft-mocks wrapper for PhpUnit. The wrapper is \Mougrim\PhpunitSoftMocks\TestCase.
Installation
You can install PHPUnit-soft-mocks via Composer:
- Add to composer.json (for patch phpunit packages):
{ "minimum-stability": "beta", "prefer-stable": true, "extra": { "enable-patching": true } }
- Run:
composer require --dev mougrim/phpunit-soft-mocks mkdir /tmp/mocks/ # create dir with soft-mocks cache
Using
For using soft-mocks wrapper you can extend \Mougrim\PhpunitSoftMocks\TestCase class, see example.