| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class JsonDateAwareFormatterTest extends TestCase |
||
| 7 | { |
||
| 8 | |||
| 9 | public function encodeJson($data) |
||
| 16 | } |
||
| 17 | |||
| 18 | public function dataFormat() |
||
| 19 | { |
||
| 20 | return array( |
||
| 21 | array(array('foo'=>'bar'), $this->encodeJson(array('foo'=>'bar'))), |
||
| 22 | array(array('timestamp'=> new \DateTime('@0')), $this->encodeJson(array('timestamp' => '1970-01-01 00:00:00'))) |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @dataProvider dataFormat |
||
| 28 | * @param array $input |
||
| 29 | * @param string $expected |
||
| 30 | */ |
||
| 31 | public function testFormat(array $input, $expected) |
||
| 35 | } |
||
| 36 | |||
| 37 | public function testFormatBatch() |
||
| 45 | } |
||
| 46 | } |
||
| 47 |