File "DeclinedSpec.php"

Full path: /home/cakedeco/retaildirectonline.co.uk/system/storage/vendor/cardinity/cardinity-sdk-php/spec/Exception/DeclinedSpec.php
File size: 563 B (563 B bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

<?php

namespace spec\Cardinity\Exception;

use Cardinity\Method\ResultObject;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class DeclinedSpec extends ObjectBehavior
{
    function let(\RuntimeException $exception, ResultObject $error)
    {
        $this->beConstructedWith(
            $exception,
            $error
        );
    }
    
    function it_is_initializable()
    {
        $this->shouldHaveType('Cardinity\Exception\Declined');
    }

    function it_should_return_correct_code()
    {
        $this->getCode()->shouldReturn(402);
    }
}