mockarena / leo-mockarena
An extension to Leo for writing assertions with Mockarena
Installs: 9 814
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
- mockarena/mockarena: <2.0
Requires (Dev)
- peridot-php/leo: ^1.5
- peridot-php/peridot: ^1.18
- phpspec/prophecy: ^1.6
- squizlabs/php_codesniffer: ^2.6
This package is auto-updated.
Last update: 2024-10-11 06:54:11 UTC
README
Extends Leo's matcher library with helpers for evaluating Mockarena mocks.
Example
it('should add a login_url filter', function () { $fn = $this->mocker->mock('add_filter'); $class = new WPSingleSignOn($this->apiClient->reveal()); expect($fn)->to->have->been->called(1); expect($fn)->calls(0)->to->have->arguments(['login_url', [$class, 'redirectToProvider'], 10, 2]); });