| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | protected function createMock($originalClassName) |
||
| 47 | { |
||
| 48 | if (is_callable('parent::createMock')) { |
||
| 49 | return parent::createMock($originalClassName); |
||
| 50 | } |
||
| 51 | |||
| 52 | return parent::getMockBuilder($originalClassName) |
||
| 53 | ->disableOriginalConstructor() |
||
| 54 | ->disableOriginalClone() |
||
| 55 | ->disableArgumentCloning() |
||
| 56 | ->getMock(); |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider.