# PHPUnit Enhancement Plugin Other

**Other features** include legacy helper string support retained from the original PHPUnit Autocomplete Assistant fork.

---

## Legacy MethodMock and PHPUnit_Helper string support

**Feature ID:** `LegacyHelperStringSupport`  
**Feature Page:** [Legacy MethodMock and PHPUnit_Helper string support](https://espend.de/phpstorm/plugin/phpunit#legacy-helper-string-support)  

Keeps support for legacy helper APIs from the original PHPUnit Autocomplete Assistant fork. Method and property strings in `MethodMock` and `PHPUnit_Helper` helpers receive completion, references, and validation against the target class.

### Code Examples

```php
# Legacy helper method and property strings:
MethodMock::mockMethodResult(PaymentGateway::class, 'capture', true);
MethodMock::callProtectedMethod(PaymentGateway::class, 'buildPayload', []);

PHPUnit_Helper::getProtectedPropertyValue($service, 'gateway');
PHPUnit_Helper::callProtectedMethod($service, 'buildPayload', []);
```

---

