On Tue, Oct 22, 2013 at 8:06 PM, Artur Bodera <[email protected]> wrote:

> If you want to test if specific event has been triggered, then you'd need
> to use a closure as I've previously suggested. That is because ::trigger()
> method can be called in 4 different 
> styles<https://github.com/zendframework/zf2/blob/master/library/Zend/EventManager/EventManagerInterface.php#L20-L37>
> ,


Clarification: unless of course you know _exactly_ how your component is
calling trigger() method on EM. In such case you can use ->with()
tests of PHPUnit
stubs<http://phpunit.de/manual/current/en/test-doubles.html#test-doubles.stubs>
.


-- 
[email protected]
+48 695 600 936
http://thinkscape.pro

Reply via email to