Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function iShouldSeeAddedToDomain($arg1) |
||
43 | { |
||
44 | /** @var \Hexarchium\CoreDomain\Model\Domain\Entity\Domain $domain */ |
||
45 | $domain = $this->domainRepository->getById(new DomainId($arg1)); |
||
46 | $counter = 0; |
||
47 | foreach ($domain->pullEvents() as $event) { |
||
48 | if ($event instanceof ModelAdded) { |
||
49 | $counter++; |
||
50 | } |
||
51 | } |
||
52 | Assert::assertTrue($counter > 0); |
||
53 | } |
||
54 | } |
||
55 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.