Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function testHydratorExtractAsExpected() |
||
17 | { |
||
18 | $object = new Money(500, new Currency('BRL')); |
||
19 | $hydrator = new MoneyHydrator(); |
||
20 | $extracted = $hydrator->extract($object); |
||
21 | $expected = ['amount' => 500, 'currency' => $object->getCurrency()->getName()]; |
||
22 | |||
23 | $this->assertEquals($expected, $extracted); |
||
24 | } |
||
25 | |||
38 |