| Conditions | 4 | 
| Paths | 5 | 
| Total Lines | 16 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 26 | public function expectException($exception, $message = '', $code = null)  | 
            ||
| 27 |     { | 
            ||
| 28 |         if (is_callable('parent::expectException')) { | 
            ||
| 29 | parent::expectException($exception);  | 
            ||
| 30 | |||
| 31 |             if ($message !== '') { | 
            ||
| 32 | parent::expectExceptionMessage($message);  | 
            ||
| 33 | }  | 
            ||
| 34 | |||
| 35 |             if ($code !== null) { | 
            ||
| 36 | parent::expectExceptionCode($code);  | 
            ||
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 40 | return parent::setExpectedException($exception, $message, $code);  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 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.