| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 41 | public function testGetResponseGroup() |
||
| 42 | { |
||
| 43 | $search = new Search(); |
||
| 44 | static::assertEquals(null, $search->getResponseGroup()); |
||
| 45 | $search->setResponseGroup(array('Small', 'Medium', 'Large')); |
||
| 46 | static::assertEquals(array('Small', 'Medium', 'Large'), $search->getResponseGroup()); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |
If you implement
__calland 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
__callis implemented by a parent class and only the child class knows which methods exist: