Skip to content

Commit 9dab01a

Browse files
committed
docs: add comments
1 parent 60188ac commit 9dab01a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/system/Autoloader/FileLocatorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function testLocateFileNotNamespacedWorksInNestedAppDirectory()
9191

9292
$expected = APPPATH . 'Controllers/Home.php';
9393

94+
// This works because $file contains `Controllers`.
9495
$this->assertSame($expected, $this->locator->locateFile($file, 'Controllers'));
9596
}
9697

@@ -120,6 +121,7 @@ public function testLocateFileCanFindNamespacedView()
120121

121122
$expected = APPPATH . 'Views/errors/html/error_404.php';
122123

124+
// The namespace `Errors` (APPPATH . 'Views/errors') + the folder (`html`) + `error_404`
123125
$this->assertSame($expected, $this->locator->locateFile($file, 'html'));
124126
}
125127

0 commit comments

Comments
 (0)