Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 15 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
33 | View Code Duplication | public function testUserGetModelCanBeInstantiated() |
|
34 | { |
||
35 | $namespace = 'Test\\Models\\'; |
||
36 | |||
37 | $options = [ |
||
38 | 'namespace' => $namespace, |
||
39 | 'model' => 'User', |
||
40 | ]; |
||
41 | |||
42 | $crudApi = new CrudApi($options); |
||
43 | |||
44 | $fqModel = $crudApi->getModel(); |
||
45 | $model = new $fqModel; |
||
46 | $this->assertEquals('Test\\Models\\User', get_class($model)); |
||
47 | } |
||
48 | |||
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.