spec\Namshi\Notificator\Notification\Handler\HipChatSpec::it_should_handle_hipchat_notifications_only PHP Метод

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

    function it_should_handle_hipchat_notifications_only()
    {
        $hipChatNotification = new HipChatNotification('a', 'b', []);
        $otherNotification = new EmailNotification(['a'], []);
        if (!$this->getWrappedObject()->shouldHandle($hipChatNotification)) {
            throw new \Exception('fails');
        }
        if ($this->getWrappedObject()->shouldHandle($otherNotification)) {
            throw new \Exception('fails');
        }
    }