1 | <?php |
||
10 | class ManagerFactoryTest extends PHPUnit_Framework_TestCase |
||
11 | { |
||
12 | /** |
||
13 | * @dataProvider getConnectors |
||
14 | * |
||
15 | * @param array $config |
||
16 | */ |
||
17 | public function testInsert(array $config) |
||
42 | |||
43 | /** |
||
44 | * @param float $delay |
||
45 | * @param mixed $expected |
||
46 | * @param mixed $actual |
||
47 | */ |
||
48 | private function assertEqualsAfterDelay($delay, $expected, $actual) |
||
55 | |||
56 | /** |
||
57 | * @return array |
||
58 | */ |
||
59 | public function getConnectors() |
||
91 | } |
||
92 |
If you implement
__call
and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__call
is implemented by a parent class and only the child class knows which methods exist: