Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
FixtureUtils
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
1 / 1
 getOpenapiFixtureFile
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
2
1<?php
2
3namespace Apie\IntegrationTests;
4
5use Apie\IntegrationTests\Interfaces\TestApplicationInterface;
6
7class FixtureUtils
8{
9    public static function getOpenapiFixtureFile(TestApplicationInterface $testApplication, bool $json = true): string
10    {
11        return __DIR__
12            . '/../fixtures/RestApi/openapi'
13            . $testApplication->getApplicationConfig()->getDatalayerImplementation()->getShortName()
14            . ($json ? '.json' : '.yaml');
15    }
16}