function notify($event)
{
$result = $event->getResult();
$failed = $result->failureCount() or $result->errorCount();
$manager = new Manager();
$manager->addHandler(new NotifySendHandler());
$notification = new NotifySendNotification("Codeception Tests " . ($failed ? "FAILED" : "PASSED"));
$manager->trigger($notification);
}