| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function test() |
||
| 10 | { |
||
| 11 | $converter = $this->app->get(Converter::class); |
||
| 12 | $this->assertSame($converter, $this->app->get(Converter::class)); |
||
| 13 | |||
| 14 | $this->assertSame('a', $converter->toCamelCase('a')); |
||
| 15 | $this->assertSame('A', $converter->toCamelCase('a', true)); |
||
| 16 | |||
| 17 | $this->assertSame('personState', $converter->toCamelCase('person_state')); |
||
| 18 | $this->assertSame('PersonState', $converter->toCamelCase('person_state', true)); |
||
| 19 | |||
| 20 | $this->assertSame('person_role', $converter->toUnderscore('personRole')); |
||
| 21 | $this->assertSame('person_role', $converter->toUnderscore('PersonRole')); |
||
| 22 | |||
| 23 | $this->assertSame('test', $converter->toObject(['test' => 'test'])->test); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |