Passed
Pull Request — master (#76)
by
unknown
11:56
created

AnyIdTypeTest::testTypeWithAnyIdHasAnyId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace hiqdev\php\billing\tests\unit\type;
4
5
use hiqdev\php\billing\type\TypeInterface;
0 ignored issues
show
Bug introduced by
The type hiqdev\php\billing\type\TypeInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use hiqdev\php\billing\type\AnyIdType;
7
use PHPUnit\Framework\TestCase;
8
9
class AnyIdTypeTest extends TestCase
10
{
11
    public function testTypeWithAnyIdHasAnyId(): void
12
    {
13
        $type = new AnyIdType('monthly,leasing');
14
15
        $this->assertSame(TypeInterface::ANY, $type->getId());
16
        $this->assertSame('monthly,leasing', $type->getName());
17
    }
18
}
19