Completed
Push — master ( 3b3980...4ce207 )
by Gorka
9s
created

EmailAddressInvalidExceptionSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 12
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 4 1
A it_extends_invalid_argument_exception() 0 4 1
1
<?php
2
3
namespace Spec\Kreta\SharedKernel\Domain\Model\Identity;
4
5
use Kreta\SharedKernel\Domain\Model\Identity\EmailAddressInvalidException;
6
use Kreta\SharedKernel\Domain\Model\InvalidArgumentException;
7
use PhpSpec\ObjectBehavior;
8
9
class EmailAddressInvalidExceptionSpec extends ObjectBehavior
10
{
11
    function it_is_initializable()
12
    {
13
        $this->shouldHaveType(EmailAddressInvalidException::class);
14
    }
15
16
    function it_extends_invalid_argument_exception()
17
    {
18
        $this->shouldHaveType(InvalidArgumentException::class);
19
    }
20
}
21