| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class CallTest extends TestCase |
||
| 16 | { |
||
| 17 | public function testSimpleCall() |
||
| 18 | { |
||
| 19 | $di = new \drycart\di\Container(); |
||
| 20 | $di->setConfig([ |
||
| 21 | 'drycart\di\tests\dummy\DummyInterface' => ['#class'=>'drycart\di\tests\dummy\DummyComplex'] |
||
| 22 | ]); |
||
| 23 | $obj = $di->get('drycart\di\tests\dummy\DummyInterface'); |
||
| 24 | $dummy = $di->call([$obj, 'method'], ['i'=>null]); |
||
| 25 | $this->assertTrue(is_a($dummy, 'drycart\di\tests\dummy\Dummy')); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function testFunctionCall() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
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