Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
15 | 11 | public static function create(Configuration $config, TestCase $testCase): Amock |
|
16 | { |
||
17 | 11 | $loader = Loader\LoaderFactory::create( |
|
18 | 11 | $config->getSourceType(), |
|
19 | 11 | $config->getValue() |
|
20 | ); |
||
21 | |||
22 | 10 | $parser = Parser\ParserFactory::create($config->getType()); |
|
23 | |||
24 | 9 | return new Amock($loader, $parser, new StubConfiguration($testCase)); |
|
25 | } |
||
45 |