QuadPayGatewayFactorySpec::it_is_initializable()   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
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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\SyliusQuadPayPlugin;
14
15
use BitBag\SyliusQuadPayPlugin\QuadPayGatewayFactory;
16
use Payum\Core\GatewayFactory;
17
use PhpSpec\ObjectBehavior;
18
19
final class QuadPayGatewayFactorySpec extends ObjectBehavior
20
{
21
    function it_is_initializable(): void
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
22
    {
23
        $this->shouldHaveType(QuadPayGatewayFactory::class);
24
        $this->shouldHaveType(GatewayFactory::class);
25
    }
26
27
    function it_populates_config_run(): void
28
    {
29
        $this->createConfig([]);
0 ignored issues
show
Bug introduced by
The method createConfig() does not exist on spec\BitBag\SyliusQuadPa...adPayGatewayFactorySpec. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

29
        $this->/** @scrutinizer ignore-call */ 
30
               createConfig([]);
Loading history...
30
    }
31
}
32