| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function testCreateEntity() |
||
| 29 | { |
||
| 30 | $data = [ |
||
| 31 | 'name' => 'Ford', |
||
| 32 | 'price' => 15000, |
||
| 33 | ]; |
||
| 34 | |||
| 35 | $product = $this->object->createEntity( |
||
| 36 | new \KochTest\Fixtures\Doctrine\Entity\Product(), |
||
| 37 | $data |
||
| 38 | ); |
||
| 39 | |||
| 40 | $this->assertEquals($data['name'], $product->getName()); |
||
| 41 | $this->assertEquals($data['price'], $product->getPrice()); |
||
| 42 | } |
||
| 43 | |||
| 61 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..