spec\Namshi\Notificator\Notification\Handler\RabbitMQSpec::it_should_handle_rabbitmq_notifications_only PHP Метод

it_should_handle_rabbitmq_notifications_only() публичный Метод

    function it_should_handle_rabbitmq_notifications_only()
    {
        $notification = new RabbitMQNotification('message', []);
        $otherNotification = new EmailNotification('recipient', []);
        if (!$this->getWrappedObject()->shouldHandle($notification)) {
            throw new \Exception('fails');
        }
        if ($this->getWrappedObject()->shouldHandle($otherNotification)) {
            throw new \Exception('fails');
        }
    }