@@ -108,7 +108,7 @@ public function testUsedUseInAnnotationWithDisabledSearchAnnotations(): void
108108 'searchAnnotations ' => false ,
109109 ]);
110110
111- self ::assertSame (9 , $ report ->getErrorCount ());
111+ self ::assertSame (12 , $ report ->getErrorCount ());
112112
113113 self ::assertSniffError ($ report , 5 , UnusedUsesSniff::CODE_UNUSED_USE , 'Type Assert is not used in this file. ' );
114114 self ::assertSniffError ($ report , 6 , UnusedUsesSniff::CODE_UNUSED_USE , 'Type Doctrine\ORM\Mapping (as ORM) is not used in this file. ' );
@@ -118,6 +118,9 @@ public function testUsedUseInAnnotationWithDisabledSearchAnnotations(): void
118118 self ::assertSniffError ($ report , 11 , UnusedUsesSniff::CODE_UNUSED_USE , 'Type Doctrine\Common\Collections\Collection is not used in this file. ' );
119119 self ::assertSniffError ($ report , 12 , UnusedUsesSniff::CODE_UNUSED_USE , 'Type Doctrine\ORM\Mapping\Property is not used in this file. ' );
120120 self ::assertSniffError ($ report , 13 , UnusedUsesSniff::CODE_UNUSED_USE , 'Type ProxyManager\Proxy\GhostObjectInterface is not used in this file. ' );
121+ self ::assertSniffError ($ report , 14 , UnusedUsesSniff::CODE_UNUSED_USE , 'Type InvalidArgumentException is not used in this file. ' );
122+ self ::assertSniffError ($ report , 15 , UnusedUsesSniff::CODE_UNUSED_USE , 'Type LengthException is not used in this file. ' );
123+ self ::assertSniffError ($ report , 16 , UnusedUsesSniff::CODE_UNUSED_USE , 'Type RuntimeException is not used in this file. ' );
121124 }
122125
123126 public function testUsedUseInAnnotationWithEnabledSearchAnnotations (): void
@@ -151,13 +154,14 @@ public function testReportCaseInsensitiveUse(): void
151154 'searchAnnotations ' => true ,
152155 ], [UnusedUsesSniff::CODE_MISMATCHING_CASE ]);
153156
154- self ::assertSame (4 , $ report ->getErrorCount ());
157+ self ::assertSame (5 , $ report ->getErrorCount ());
155158
156159 self ::assertSniffError ($ report , 9 , UnusedUsesSniff::CODE_MISMATCHING_CASE , 'Case of reference name "bar" and use statement "Bar" do not match ' );
157160 self ::assertSniffError ($ report , 11 , UnusedUsesSniff::CODE_MISMATCHING_CASE , 'Case of reference name "BAR" and use statement "Bar" do not match ' );
158161
159162 self ::assertSniffError ($ report , 13 , UnusedUsesSniff::CODE_MISMATCHING_CASE , 'Case of reference name "boo" and use statement "Boo" do not match ' );
160163 self ::assertSniffError ($ report , 14 , UnusedUsesSniff::CODE_MISMATCHING_CASE , 'Case of reference name "BOO" and use statement "Boo" do not match ' );
164+ self ::assertSniffError ($ report , 16 , UnusedUsesSniff::CODE_MISMATCHING_CASE , 'Case of reference name "boo" and use statement "Boo" do not match ' );
161165 }
162166
163167 public function testUsedTrait (): void
0 commit comments