| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testConvert() |
||
| 12 | { |
||
| 13 | $utf8 = utf8_encode('test'); |
||
| 14 | |||
| 15 | $converter = new CharsetValueConverter('UTF-8'); |
||
| 16 | $this->assertEquals($utf8, call_user_func($converter, $utf8)); |
||
| 17 | |||
| 18 | $value = iconv('UTF-8', 'UTF-16', $utf8); |
||
| 19 | $converter = new CharsetValueConverter('UTF-8', 'UTF-16'); |
||
| 20 | $this->assertEquals($utf8, call_user_func($converter, $value)); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |