Skip to content

Commit

Permalink
Merge pull request #3231 from samsonasik/more-test-filelocator
Browse files Browse the repository at this point in the history
more tests on Autoloader\FileLocator
  • Loading branch information
MGatner authored Jul 6, 2020
2 parents e1ac9d7 + a7a6c2f commit 4bc1dc2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/system/Autoloader/FileLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ public function testLocateFileCanFindNestedNamespacedView()

//--------------------------------------------------------------------

public function testLocateFileNotFoundExistingNamespace()
{
$file = '\App\Views/unexistence-file.php';

$this->assertFalse($this->locator->locateFile($file, 'Views'));
}

//--------------------------------------------------------------------

public function testLocateFileNotFoundWithBadNamespace()
{
$file = '\Blogger\admin/posts.php';
Expand Down Expand Up @@ -182,6 +191,11 @@ public function testSearchForFileNotExist()
$this->assertArrayNotHasKey(0, $foundFiles);
}

public function testListNamespaceFilesEmptyPrefixAndPath()
{
$this->assertEmpty($this->locator->listNamespaceFiles('', ''));
}

//--------------------------------------------------------------------

public function testListFilesSimple()
Expand Down

0 comments on commit 4bc1dc2

Please sign in to comment.