| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | public function testDataEncodingAndDecodingRoundtrips() { |
||
| 16 | $donation = new Donation(); |
||
| 17 | |||
| 18 | $someData = [ |
||
| 19 | 'nyan' => 'cat', |
||
| 20 | 'foo' => null, |
||
| 21 | 'bar' => 9000.01, |
||
| 22 | 'baz' => [ true ] |
||
| 23 | ]; |
||
| 24 | |||
| 25 | $donation->encodeAndSetData( $someData ); |
||
| 26 | |||
| 27 | $this->assertSame( $someData, $donation->getDecodedData() ); |
||
| 28 | } |
||
| 29 | |||
| 31 |