Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
49 | public function testAdditionalModelCanBeInstantiated() |
||
50 | { |
||
51 | $namespace = 'Test\\Models\\'; |
||
52 | |||
53 | $options = [ |
||
54 | 'namespace' => $namespace, |
||
55 | 'model' => 'AdditionalModel', |
||
56 | ]; |
||
57 | |||
58 | $crudApi = new CrudApi($options); |
||
59 | |||
60 | $fqModel = $crudApi->getModel(); |
||
61 | $model = new $fqModel; |
||
62 | $this->assertEquals('Test\\AnotherNamespace\\AdditionalModel', get_class($model)); |
||
63 | } |
||
64 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.