It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
18
19
/**
20
* Returns the current test.
21
*
22
* @return Test
23
*/
24
6
protected function getTest()
25
{
26
6
return new Test(new \ReflectionMethod($this, $this->getName(false)));
27
}
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())
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.