I've got this line in my unit testing files:
$this->object->drupal->shouldReceive('drupalSetMessage')->once();
but I've got the errors like:
$ ./tests/phpunit -c tests/phpunit.xml
...
There was 1 error:
1) SessionTest::testFoo
Mockery\Exception\InvalidCountException: Method drupalSetMessage(<Any Arguments>) from Mockery_1_Drupal_Util_Drupal should be called
exactly 1 times but called 0 times.
tests/vendor/mockery/mockery/library/Mockery/CountValidator/Exact.php:38
tests/vendor/mockery/mockery/library/Mockery/Expectation.php:309
tests/vendor/mockery/mockery/library/Mockery/ExpectationDirector.php:119
tests/vendor/mockery/mockery/library/Mockery/Container.php:301
tests/vendor/mockery/mockery/library/Mockery/Container.php:286
tests/vendor/mockery/mockery/library/Mockery.php:165
How can I debug to see with what parameters the method has been called during the test?