Skip to content

Commit 6898cb2

Browse files
committed
Add test
1 parent e36b55f commit 6898cb2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Latest stable version](https://img.shields.io/packagist/v/kubawerlos/php-cs-fixer-custom-fixers.svg?label=current%20version)](https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers)
66
[![PHP version](https://img.shields.io/packagist/php-v/kubawerlos/php-cs-fixer-custom-fixers.svg)](https://php.net)
77
[![License](https://img.shields.io/github/license/kubawerlos/php-cs-fixer-custom-fixers.svg)](LICENSE)
8-
![Tests](https://img.shields.io/badge/tests-3606-brightgreen.svg)
8+
![Tests](https://img.shields.io/badge/tests-3607-brightgreen.svg)
99
[![Downloads](https://img.shields.io/packagist/dt/kubawerlos/php-cs-fixer-custom-fixers.svg)](https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers)
1010

1111
[![CI status](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions/workflows/ci.yaml/badge.svg)](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions/workflows/ci.yaml)

tests/Fixer/PhpUnitRequiresExplicitConstraintFixerTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ public function testFix80(string $expected, ?string $input = null): void
151151
*/
152152
public static function provideFix80Cases(): iterable
153153
{
154+
yield 'attribute with constraints' => [
155+
'<?php class FooTest extends TestCase {
156+
#[\\PHPUnit\\Framework\\Attributes\\RequiresPhp("^8.4")]
157+
#[\\PHPUnit\\Framework\\Attributes\\RequiresPhpunit("~11.0")]
158+
public function testFoo(): void {}
159+
}',
160+
];
161+
154162
yield 'attribute' => [
155163
'<?php class FooTest extends TestCase {
156164
#[

0 commit comments

Comments
 (0)