1 | <?php |
||
22 | class AbstractOperationTest extends \PHPUnit_Framework_TestCase |
||
23 | { |
||
24 | public function testAbstractOperationSetterAndGetter() |
||
31 | |||
32 | /** |
||
33 | * @expectedException BadFunctionCallException |
||
34 | */ |
||
35 | public function testAbstractOperationInvalidMethodName() |
||
40 | |||
41 | public function testGetResponseGroup() |
||
48 | } |
||
49 |
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: