mougrim / phpunit-soft-mocks
Simple running phpunit with soft-mocks
1.0.0-beta1
2017-09-08 06:16 UTC
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: 2024-11-16 21:19:52 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.