1 | <?php |
||
10 | class MockTest extends Test |
||
11 | { |
||
12 | public $mocks = [ |
||
13 | ['say.hello', ['nick' => 'nekufa'], 'hello'], |
||
14 | ['service.call', ['name' => 'nekufa'], ['value' => 'nekufa!']], |
||
15 | ['service.call', ['name' => 'bazyaba'], ['value' => 'bazyaba!']], |
||
16 | ['service.call', [], ['value' => 'anonymous!']], |
||
17 | ]; |
||
18 | |||
19 | public function hello($params) |
||
23 | |||
24 | public function testContext() |
||
28 | |||
29 | public function testMocking() |
||
43 | } |
||
44 |
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.