what if the method is ->shouldHandle()

17 views
Skip to first unread message

Luis Cordova

unread,
Aug 24, 2013, 4:15:52 AM8/24/13
to phpsp...@googlegroups.com
  ! should handle hipchat notifications only
        no handle([array:1]) matcher found for
        [obj:Namshi\Notificator\Notification\Handler\HipChat].

what to do in this case???

    /**
     * @param \Namshi\Notificator\Notification\HipChat\HipChatNotificationInterface $hipChatNotification
     * @param \Namshi\Notificator\Notification\Email\EmailNotificationInterface $otherNotification
     */
    function it_should_handle_hipchat_notifications_only($hipChatNotification, $otherNotification)
    {
        $this->shouldHandle($hipChatNotification)->shouldReturn(true);
        $this->shouldHandle($otherNotification)->shouldReturn(false);
    }

Luis Cordova

unread,
Aug 24, 2013, 4:18:59 AM8/24/13
to phpsp...@googlegroups.com

    function shouldHandle($notification)
    {
        return $this->object->shouldHandle($notification);
    }

closed
Reply all
Reply to author
Forward
0 new messages