---
title: "format/phpunit/fqcn-annotation"
pagination: false
---

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

<RuleId id="format/phpunit/fqcn-annotation" />

Not in any preset. Safe fix. Runs when phpunit is installed.

## What it does

PHPUnit annotations should be a FQCNs including a root namespace.

## Configuration

```toml title="pun.toml"
[format.rules]
"phpunit/fqcn-annotation" = true
```

To skip it in some files, add a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Replaces

- [`php_unit_fqcn_annotation`](https://cs.symfony.com/doc/rules/php_unit/php_unit_fqcn_annotation.html) (php-cs-fixer)

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