File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,14 @@ public function testReturnTypehint()
8585 $ this ->assertNoSniffErrorInFile ($ this ->checkFile (__DIR__ . '/data/php7/unusedUses.php ' ));
8686 }
8787
88+ public function testUsedUseInsideAnnotation ()
89+ {
90+ $ report = $ this ->checkFile (__DIR__ . '/data/unusedUses.php ' , [
91+ 'searchAnnotations ' => true ,
92+ ]);
93+ $ this ->assertNoSniffError ($ report , 16 );
94+ }
95+
8896 public function testFindCaseInsensitiveUse ()
8997 {
9098 $ report = $ this ->checkFile (__DIR__ . '/data/caseInsensitiveUse.php ' );
Original file line number Diff line number Diff line change 1313use function LoremIpsum \UsedFunction ;
1414use const FooBar \UNUSED_CONSTANT ;
1515use const LoremIpsum \USED_CONSTANT ;
16+ use X ;
1617
1718class TestClass
1819{
1920
21+ /**
22+ * @Assert\NotBlank(groups={X::SOME_CONSTANT}
23+ */
2024 public function test (S $ s )
2125 {
2226 new \Test \Foo \Bar ();
You can’t perform that action at this time.
0 commit comments