---
title: "rector-phpunit/annotations-to-attributes set"
pagination: false
---

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

rector-phpunit's `annotations-to-attributes` set: the Pun lint rules its Rector rules map to, and nothing else.

```toml
[lint]
sets = ["rector-phpunit/annotations-to-attributes"]
```

A rule merged from several Rector rules runs only the rewrites of this set's Rector rules, unless a [preset](/docs/configuration/presets#lint-presets) also turns it on. Rector rules that are format rules in Pun run under `[format]` instead. Laravel, Pest, and PHPUnit rules also need their [extension](/docs/configuration/pun-toml#extensions).

## Rules (8)

| Rule | Rector rules | Status |
| --- | --- | --- |
| [`lint/phpunit/prefer-attribute-over-annotation`](/docs/rules/lint/phpunit/prefer-attribute-over-annotation) | `AnnotationWithValueToAttributeRector` | Ported |
| [`lint/phpunit/prefer-covers-attribute`](/docs/rules/lint/phpunit/prefer-covers-attribute) | `CoversAnnotationWithValueToAttributeRector` | Ported |
| [`lint/phpunit/prefer-data-provider-attribute`](/docs/rules/lint/phpunit/prefer-data-provider-attribute) | `DataProviderAnnotationToAttributeRector` | Ported |
| [`lint/phpunit/prefer-depends-attribute`](/docs/rules/lint/phpunit/prefer-depends-attribute) | `DependsAnnotationWithValueToAttributeRector` | Ported |
| [`lint/phpunit/prefer-requires-attribute`](/docs/rules/lint/phpunit/prefer-requires-attribute) | `RequiresAnnotationWithValueToAttributeRector` | Ported |
| [`lint/phpunit/prefer-test-with-attribute`](/docs/rules/lint/phpunit/prefer-test-with-attribute) | `TestWithAnnotationToAttributeRector` | Ported |
| [`lint/phpunit/prefer-ticket-attribute`](/docs/rules/lint/phpunit/prefer-ticket-attribute) | `TicketAnnotationToAttributeRector` | Ported |
| [`lint/refactor/prefer-attribute-over-annotation`](/docs/rules/lint/refactor/prefer-attribute-over-annotation) | `AnnotationToAttributeRector` | Ported |
