| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function construct() |
||
| 20 | { |
||
| 21 | $xml = simplexml_load_string('<OFX><FITID>123</FITID><MEMO>Alguma Descrição</MEMO><TRNAMT>123,99</TRNAMT><DTPOSTED>20160102</DTPOSTED></OFX>'); |
||
| 22 | $ofxMovement = new OfxMovement($xml); |
||
| 23 | |||
| 24 | $this->assertInstanceOf(OfxMovement::class, $ofxMovement); |
||
| 25 | |||
| 26 | $this->assertEquals('Alguma Descrição', $ofxMovement->getDescription()); |
||
| 27 | $this->assertEquals(123.99, $ofxMovement->getAmount()); |
||
| 28 | $this->assertInstanceOf(DateTime::class, $ofxMovement->getDueDate()); |
||
| 29 | $this->assertEquals('123', $ofxMovement->getDocument()); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |