File tree Expand file tree Collapse file tree
rules-tests/AnnotationsToAttributes/Rector/ClassMethod/TestWithAnnotationToAttributeRector/Fixture Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ ?>
You can’t perform that action at this time.
0 commit comments