Closed
Description
Q | A |
---|---|
PHPUnit version | 8.1 |
PHP version | 7.x |
Installation Method | Composer / PHAR |
Would you accept a PR to support mocking closure, to ease checking that one is called?
I.e : https://3v4l.org/Yaq5A
public function testClosureIsCalled()
{
$callback = function () {};
$this->assertClosureWillBeCalled($callback);
SomeBusiness:caller($callback);
}