padraic/mockery — pull request #226 by RadeoslawPL (2013-11-30 12:45:07+00:00)
Title: Add Hamcrest assertThat() so assertions can be counted

I've integrated Hamcrest with my PHPUnit in RunBare method https://gist.github.com/dharkness/3965902

And when i use Mockery with Hamcrest Matchers as arguments in method f.ex. with() than PHPUnit doesnt count assertion.

Example:
$adapter = Mockery::mock('Logger');
$adapter->shouldReceive('write')->once()->with(hasKey('message')->andReturnNull();

This update pass the matcher to the asserThat method of Hamcrest Framework so the assertions are counted.