---
title: "lint/phpunit/add-see-test-tag"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="lint/phpunit/add-see-test-tag" />

Not in any preset. In Rector's [`rector/rector-preset`](/docs/rules/sets/rector/rector-preset) set. Needs the [`phpunit` extension](/docs/configuration/pun-toml#extensions). Safe fix.

## What it does

Add @see annotation test of the class for faster jump to test. Make it FQN, so it stays in the annotation, not in the PHP source code.

## Configuration

```toml title="pun.toml"
[lint.rules]
"phpunit/add-see-test-tag" = "error"
```

To skip it in some files or lines, add an [override](/docs/configuration/pun-toml#lint) or an [ignore comment](/docs/configuration/ignore-comments).

## Replaces

- [`AddSeeTestAnnotation`](https://getrector.com/rule-detail/add-see-test-annotation-rector) (rector-phpunit)

[More lint/phpunit rules](/docs/rules/lint/phpunit) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
