| 1 | <?php  | 
            ||
| 9 | trait TestCaseTrait  | 
            ||
| 10 | { | 
            ||
| 11 | /**  | 
            ||
| 12 | * Returns the name of the current test method.  | 
            ||
| 13 | *  | 
            ||
| 14 | * @param bool $withDataSet  | 
            ||
| 15 | * @return string  | 
            ||
| 16 | */  | 
            ||
| 17 | abstract function getName($withDataSet = true);  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * Returns the current test.  | 
            ||
| 21 | *  | 
            ||
| 22 | * @return Test  | 
            ||
| 23 | */  | 
            ||
| 24 | 6 | protected function getTest()  | 
            |
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * Returns the mocks associated with the current test.  | 
            ||
| 31 | *  | 
            ||
| 32 | * @param array $constructorArgs  | 
            ||
| 33 | * @return object[]  | 
            ||
| 34 | */  | 
            ||
| 35 | 2 | protected function getMocks(array $constructorArgs = array())  | 
            |
| 39 | }  | 
            ||
| 40 | 
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.