public function PHPUnit_Framework_MockObject_Matcher_InvokedRecorder::hasBeenInvoked in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedRecorder.php \PHPUnit_Framework_MockObject_Matcher_InvokedRecorder::hasBeenInvoked()
Return value
bool
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Matcher/ InvokedRecorder.php, line 46
Class
- PHPUnit_Framework_MockObject_Matcher_InvokedRecorder
- Records invocations and provides convenience methods for checking them later on. This abstract class can be implemented by matchers which needs to check the number of times an invocation has occured.
Code
public function hasBeenInvoked() {
return count($this->invocations) > 0;
}