Completed
Branch master (1fe5d2)
by Tomasz
03:00 queued 42s
created

UseCaseFeatureContext::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
use Behat\Behat\Tester\Exception\PendingException;
3
use Hexarchium\CoreDomain\Model\Domain\Repository\DomainRepositoryInterface;
4
5
/**
6
 * Copyright
7
 */
8
class UseCaseFeatureContext implements \Behat\Behat\Context\Context
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
9
{
10
11
    /**
12
     * UseCaseFeatureContext constructor.
13
     *
14
     * @param DomainRepositoryInterface $domainRepository
15
     */
16
    public function __construct(DomainRepositoryInterface $domainRepository)
0 ignored issues
show
Unused Code introduced by
The parameter $domainRepository is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
    {
18
    }
19
20
    /**
21
     * @When I create usecase with :arg1 id for :arg2 domain
22
     */
23
    public function iCreateUsecaseWithIdForDomain($arg1, $arg2)
0 ignored issues
show
Unused Code introduced by
The parameter $arg1 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $arg2 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
24
    {
25
        throw new PendingException();
26
    }
27
28
    /**
29
     * @Then I should see new usecase in :arg1 domain
30
     */
31
    public function iShouldSeeNewUsecaseInDomain($arg1)
0 ignored issues
show
Unused Code introduced by
The parameter $arg1 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
    {
33
        throw new PendingException();
34
    }
35
}
36