44
55use  InvalidArgumentException ;
66use  PHPUnit \Framework \AssertionFailedError ;
7+ use  PHPUnit \Framework \Attributes \DataProvider ;
8+ use  PHPUnit \Framework \Attributes \Depends ;
79use  Psr \Http \Message \UriInterface ;
810use  Throwable ;
911use  TypeError ;
@@ -45,6 +47,7 @@ public function testScheme()
4547    /** 
4648     * @dataProvider getInvalidSchemaArguments 
4749     */ 
50+     #[DataProvider('getInvalidSchemaArguments ' )]
4851    public  function  testWithSchemeInvalidArguments ($ schema
4952    {
5053        if  (isset ($ this skippedTests [__FUNCTION__ ])) {
@@ -155,6 +158,7 @@ public function testPort()
155158    /** 
156159     * @dataProvider getPaths 
157160     */ 
161+     #[DataProvider('getPaths ' )]
158162    public  function  testPath (UriInterface $ uristring  $ expected
159163    {
160164        if  (isset ($ this skippedTests [__FUNCTION__ ])) {
@@ -181,6 +185,7 @@ public static function getPaths()
181185    /** 
182186     * @dataProvider getQueries 
183187     */ 
188+     #[DataProvider('getQueries ' )]
184189    public  function  testQuery (UriInterface $ uristring  $ expected
185190    {
186191        if  (isset ($ this skippedTests [__FUNCTION__ ])) {
@@ -206,6 +211,7 @@ public static function getQueries()
206211    /** 
207212     * @dataProvider getFragments 
208213     */ 
214+     #[DataProvider('getFragments ' )]
209215    public  function  testFragment (UriInterface $ uristring  $ expected
210216    {
211217        if  (isset ($ this skippedTests [__FUNCTION__ ])) {
@@ -304,6 +310,7 @@ public function testGetPathNormalizesMultipleLeadingSlashesToSingleSlashToPreven
304310     * 
305311     * @psalm-param array{expected: non-empty-string, uri: UriInterface} $test 
306312     */ 
313+     #[Depends('testGetPathNormalizesMultipleLeadingSlashesToSingleSlashToPreventXSS ' )]
307314    public  function  testStringRepresentationWithMultipleSlashes (array  $ test
308315    {
309316        $ this assertSame ($ test'expected ' ], (string ) $ test'uri ' ]);
0 commit comments