| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function testGetFieldNameFromMethodName(): void |
||
| 23 | { |
||
| 24 | $namingStrategy = new NamingStrategy(); |
||
| 25 | |||
| 26 | $this->assertSame('name', $namingStrategy->getFieldNameFromMethodName('getName')); |
||
| 27 | $this->assertSame('get', $namingStrategy->getFieldNameFromMethodName('get')); |
||
| 28 | $this->assertSame('name', $namingStrategy->getFieldNameFromMethodName('isName')); |
||
| 29 | $this->assertSame('is', $namingStrategy->getFieldNameFromMethodName('is')); |
||
| 30 | $this->assertSame('foo', $namingStrategy->getFieldNameFromMethodName('foo')); |
||
| 31 | } |
||
| 33 |