aboutsummaryrefslogtreecommitdiffstats
path: root/public/system/storage/vendor/cardinity/cardinity-sdk-php/spec/Exception/ServiceUnavailableSpec.php
blob: cafecc70e6fef0635cadc59312bbd3a9c7b8481b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace spec\Cardinity\Exception;

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

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

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