On Thu, Oct 3, 2013 at 5:48 PM, Julian Vidal <[email protected]> wrote:
> $eventManager->attach('mymethod.post', function() {
> $this->assertTrue(true);
> });
>
This is wrong, because if it doesn't get fired, the test will also pass.
You can do something like this:
$wasFired = false;
$eventManager->attach('mymethod.post', function() use (&$wasFired) {
$wasFired = true;
});
$this->assertTrue($wasFired);
--
[email protected]
+48 695 600 936
http://thinkscape.pro
