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

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

public it_handles_hipchat_notifications ( Namshi\Notificator\Notification\HipChat\HipChatNotification $hipChatNotification, HipChat\HipChat $hipChatClient )
$hipChatNotification Namshi\Notificator\Notification\HipChat\HipChatNotification
$hipChatClient HipChat\HipChat
    function it_handles_hipchat_notifications($hipChatNotification, $hipChatClient)
    {
        $hipChatNotification->getParameter(Argument::any())->willReturn('something');
        $hipChatNotification->getHipChatRoom()->willReturn('something');
        $hipChatNotification->getHipChatSenderId()->willReturn('someId');
        $hipChatNotification->getMessage()->willReturn('something');
        $hipChatClient->message_room('something', 'someId', 'something', 'something', 'something', 'something')->shouldBeCalled();
        $this->handle($hipChatNotification);
    }