| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | public function testDataEncodingAndDecodingRoundtrips() { |
||
| 41 | $donation = new Donation(); |
||
| 42 | |||
| 43 | $someData = [ |
||
| 44 | 'nyan' => 'cat', |
||
| 45 | 'foo' => null, |
||
| 46 | 'bar' => 9000.01, |
||
| 47 | 'baz' => [ true ] |
||
| 48 | ]; |
||
| 49 | |||
| 50 | $donation->encodeAndSetData( $someData ); |
||
| 51 | |||
| 52 | $this->assertSame( $someData, $donation->getDecodedData() ); |
||
| 53 | } |
||
| 54 | |||
| 56 |