spec\Namshi\Notificator\Notification\Handler\EmailvisionSpec::it_should_handle_emailvision_notifications_only PHP Method

it_should_handle_emailvision_notifications_only() public method

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