| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public function test() |
||
| 8 | { |
||
| 9 | $converter = $this->app->get(Converter::class); |
||
| 10 | |||
| 11 | $this->assertSame('a', $converter->toCamelCase('a')); |
||
| 12 | $this->assertSame('A', $converter->toCamelCase('a', true)); |
||
| 13 | |||
| 14 | $this->assertSame('personState', $converter->toCamelCase('person_state')); |
||
| 15 | $this->assertSame('PersonState', $converter->toCamelCase('person_state', true)); |
||
| 16 | |||
| 17 | $this->assertSame('person_role', $converter->toUnderscore('personRole')); |
||
| 18 | $this->assertSame('person_role', $converter->toUnderscore('PersonRole')); |
||
| 19 | } |
||
| 20 | } |
||
| 21 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.