1 | <?php |
||
7 | class MockTest extends Test |
||
8 | { |
||
9 | public $mocks = [ |
||
10 | ['say.hello', ['nick' => 'nekufa'], 'hello'], |
||
11 | ['service.call', ['name' => 'nekufa'], ['value' => 'nekufa!']], |
||
12 | ['service.call', ['name' => 'bazyaba'], ['value' => 'bazyaba!']], |
||
13 | ['service.call', [], ['value' => 'anonymous!']], |
||
14 | ]; |
||
15 | |||
16 | public function hello($params) |
||
20 | |||
21 | public function testContext() |
||
25 | |||
26 | public function testInstanceParams() |
||
31 | |||
32 | public function testParamsToObject() |
||
37 | |||
38 | public function testMocking() |
||
52 | } |
||
53 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.