| 1 | <?php |
||
| 8 | class EntityToolTest extends DoctrineTestCase |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var CreateEntity |
||
| 12 | */ |
||
| 13 | protected $object; |
||
| 14 | |||
| 15 | public function setUp() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @covers Koch\Doctrine\EntityTool::createEntity |
||
| 27 | */ |
||
| 28 | public function testCreateEntity() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @expectedException \InvalidArgumentException |
||
| 46 | * @expectedExceptionMessage Property "category" does not exist on class "KochTest\Fixtures\Doctrine\Entity\Product". |
||
| 47 | */ |
||
| 48 | public function testCannotAddInvalidProperty() |
||
| 60 | } |
||
| 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..