| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function testEmbeddedObjectsAreAlsoInherited() |
||
| 19 | { |
||
| 20 | $employee = new DDC3303Employee( |
||
| 21 | 'John Doe', |
||
| 22 | new DDC3303Address('Somewhere', 123, 'Over the rainbow'), |
||
| 23 | 'Doctrine Inc' |
||
| 24 | ); |
||
| 25 | |||
| 26 | $this->_em->persist($employee); |
||
| 27 | $this->_em->flush(); |
||
| 28 | $this->_em->clear(); |
||
| 29 | |||
| 30 | $this->assertEquals($employee, $this->_em->find(DDC3303Employee::class, 1)); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |