Skip to content

Commit 4681ca5

Browse files
authored
Add fixture for numeric string to keep as is on TestWithAnnotationToAttributeRector (#420)
1 parent 510a99d commit 4681ca5

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\AnnotationsToAttributes\Rector\ClassMethod\TestWithAnnotationToAttributeRector\Fixture;
4+
5+
class WithNumericString extends \PHPUnit\Framework\TestCase
6+
{
7+
/**
8+
* @testWith ["2"]
9+
* ["benjamin.sisko@ds9.example.com"]
10+
*/
11+
public function testSomething(string $userId): void
12+
{
13+
}
14+
}
15+
16+
?>
17+
-----
18+
<?php
19+
20+
namespace Rector\PHPUnit\Tests\AnnotationsToAttributes\Rector\ClassMethod\TestWithAnnotationToAttributeRector\Fixture;
21+
22+
class WithNumericString extends \PHPUnit\Framework\TestCase
23+
{
24+
#[\PHPUnit\Framework\Attributes\TestWith(['2'])]
25+
#[\PHPUnit\Framework\Attributes\TestWith(['benjamin.sisko@ds9.example.com'])]
26+
public function testSomething(string $userId): void
27+
{
28+
}
29+
}
30+
31+
?>

0 commit comments

Comments
 (0)