File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 24
24
"phpstan/phpstan" : " ^1.7.1" ,
25
25
"phpunit/phpunit" : " ^9.1" ,
26
26
"predis/predis" : " ^1.1 || ^2.0" ,
27
- "rector/rector" : " 0.14.1 "
27
+ "rector/rector" : " 0.14.2 "
28
28
},
29
29
"suggest" : {
30
30
"ext-imagick" : " If you use Image class ImageMagickHandler" ,
Original file line number Diff line number Diff line change 104
104
__DIR__ . '/app/Config/Validation.php ' ,
105
105
__DIR__ . '/tests/system/Validation/StrictRules/ValidationTest.php ' ,
106
106
__DIR__ . '/tests/system/Validation/ValidationTest.php ' ,
107
-
108
- // expected Qualified name
109
- __DIR__ . '/tests/system/Autoloader/FileLocatorTest.php ' ,
110
- __DIR__ . '/tests/system/Router/RouteCollectionTest.php ' ,
111
107
],
112
108
113
109
// sometime too detail
Original file line number Diff line number Diff line change 11
11
12
12
namespace CodeIgniter \Autoloader ;
13
13
14
+ use CodeIgniter \HTTP \Header ;
14
15
use CodeIgniter \Test \CIUnitTestCase ;
15
16
use Config \Autoload ;
16
17
use Config \Modules ;
@@ -260,7 +261,7 @@ public function testListFilesWithoutPath()
260
261
public function testFindQNameFromPathSimple ()
261
262
{
262
263
$ ClassName = $ this ->locator ->findQualifiedNameFromPath (SYSTEMPATH . 'HTTP/Header.php ' );
263
- $ expected = '\CodeIgniter\HTTP\Header ' ;
264
+ $ expected = '\\' . Header::class ;
264
265
265
266
$ this ->assertSame ($ expected , $ ClassName );
266
267
}
Original file line number Diff line number Diff line change 11
11
12
12
namespace CodeIgniter \Router ;
13
13
14
+ use App \Controllers \Home ;
14
15
use CodeIgniter \Config \Services ;
15
16
use CodeIgniter \Test \CIUnitTestCase ;
16
17
use Config \Modules ;
@@ -1463,7 +1464,7 @@ public function testRouteOverwritingTwoRules()
1463
1464
$ routes ->get ('/ ' , 'Home::index ' );
1464
1465
1465
1466
// the second rule applies, so overwrites the first
1466
- $ expects = '\App\Controllers\Home ' ;
1467
+ $ expects = '\\' . Home::class ;
1467
1468
1468
1469
$ this ->assertSame ($ expects , $ router ->handle ('/ ' ));
1469
1470
}
You can’t perform that action at this time.
0 commit comments