DomainCreatedSpec::let()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace spec\Hexarchium\CoreDomain\Model\Domain\Events;
4
5
use Hexarchium\CoreDomain\Events\DomainEventInterface;
6
use Hexarchium\CoreDomain\Model\Domain\Entity\Domain;
7
use Hexarchium\CoreDomain\Model\Domain\Events\DomainCreated;
8
use PhpSpec\ObjectBehavior;
9
10
class DomainCreatedSpec extends ObjectBehavior
11
{
12
    function let(Domain $domain)
13
    {
14
        $this->beConstructedWith(new \DateTime(), $domain);
15
    }
16
17
    function it_is_initializable()
18
    {
19
        $this->shouldHaveType(DomainCreated::class);
20
        $this->shouldBeAnInstanceOf(DomainEventInterface::class);
21
    }
22
}
23