# PHPUnit Enhancement Plugin Linemarker

**Linemarkers** add gutter navigation from production classes to related PHPUnit test classes.

---

## Navigate from class to related test case

**Feature ID:** `RelatedTestCaseLineMarkerProvider`  
**Feature Page:** [Navigate from class to related test case](https://espend.de/phpstorm/plugin/phpunit#related-test-case-line-marker-provider)  

Adds a gutter marker on production classes when a matching PHPUnit test class exists. The provider checks common naming patterns such as `ClassNameTest`, `Test\...`, and `Tests\...` namespace variants.

### Code Examples

```php
# Related class and test naming:
namespace App\Service;

final class InvoiceService
{
}

namespace App\Tests\Service;

final class InvoiceServiceTest extends \PHPUnit\Framework\TestCase
{
}
```

---

