| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class FactoryTest extends \PHPUnit\Framework\TestCase |
||
|
|
|||
| 13 | { |
||
| 14 | public function testCreateClient() |
||
| 15 | { |
||
| 16 | $context = \TestHelperJapi::getContext(); |
||
| 17 | |||
| 18 | $client = \Aimeos\Client\JsonApi\Customer\Property\Factory::create( $context, 'customer/property' ); |
||
| 19 | $this->assertInstanceOf( \Aimeos\Client\JsonApi\Iface::class, $client ); |
||
| 20 | } |
||
| 21 | |||
| 22 | |||
| 23 | public function testCreateClientEmpty() |
||
| 24 | { |
||
| 25 | $context = \TestHelperJapi::getContext(); |
||
| 26 | |||
| 27 | $this->setExpectedException( \Aimeos\Client\JsonApi\Exception::class ); |
||
| 28 | \Aimeos\Client\JsonApi\Customer\Property\Factory::create( $context, '' ); |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | public function testCreateClientInvalidPath() |
||
| 38 | } |
||
| 39 | |||
| 40 | |||
| 41 | public function testCreateClientInvalidName() |
||
| 47 | } |
||
| 48 | } |
||
| 49 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths