Passed
Push — master ( 979f6d...757493 )
by US
08:39 queued 11s
created

TaxonNotFoundExceptionSpec::it_is_initializable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/*
4
 * This file has been created by developers from BitBag.
5
 * Feel free to contact us once you face any issues or want to start
6
 * another great project.
7
 * You can find more information about us on https://bitbag.shop and write us
8
 * an email on [email protected].
9
 */
10
11
declare(strict_types=1);
12
13
namespace spec\BitBag\SyliusElasticsearchPlugin\Exception;
14
15
use BitBag\SyliusElasticsearchPlugin\Exception\TaxonNotFoundException;
16
use PhpSpec\ObjectBehavior;
17
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
18
19
final class TaxonNotFoundExceptionSpec extends ObjectBehavior
20
{
21
    function it_is_initializable(): void
22
    {
23
        $this->shouldHaveType(TaxonNotFoundException::class);
24
    }
25
26
    function it_is_an_not_found_exception(): void
27
    {
28
        $this->shouldHaveType(NotFoundHttpException::class);
29
    }
30
31
    function it_has_custom_message(): void
32
    {
33
        $this->getMessage()->shouldReturn('Taxon has not been found!');
34
    }
35
}
36