File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 104104 __DIR__ . '/app/Config/Validation.php ' ,
105105 __DIR__ . '/tests/system/Validation/StrictRules/ValidationTest.php ' ,
106106 __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 ' ,
111107 ],
112108
113109 // sometime too detail
Original file line number Diff line number Diff line change 1111
1212namespace CodeIgniter \Autoloader ;
1313
14+ use CodeIgniter \HTTP \Header ;
1415use CodeIgniter \Test \CIUnitTestCase ;
1516use Config \Autoload ;
1617use Config \Modules ;
@@ -260,7 +261,7 @@ public function testListFilesWithoutPath()
260261 public function testFindQNameFromPathSimple ()
261262 {
262263 $ ClassName = $ this ->locator ->findQualifiedNameFromPath (SYSTEMPATH . 'HTTP/Header.php ' );
263- $ expected = '\CodeIgniter\HTTP\Header ' ;
264+ $ expected = '\\' . Header::class ;
264265
265266 $ this ->assertSame ($ expected , $ ClassName );
266267 }
Original file line number Diff line number Diff line change 1111
1212namespace CodeIgniter \Router ;
1313
14+ use App \Controllers \Home ;
1415use CodeIgniter \Config \Services ;
1516use CodeIgniter \Test \CIUnitTestCase ;
1617use Config \Modules ;
@@ -1463,7 +1464,7 @@ public function testRouteOverwritingTwoRules()
14631464 $ routes ->get ('/ ' , 'Home::index ' );
14641465
14651466 // the second rule applies, so overwrites the first
1466- $ expects = '\App\Controllers\Home ' ;
1467+ $ expects = '\\' . Home::class ;
14671468
14681469 $ this ->assertSame ($ expects , $ router ->handle ('/ ' ));
14691470 }
You can’t perform that action at this time.
0 commit comments