File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed 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