Skip to content

Commit

Permalink
more tests on Autoloader\FileLocator
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jul 6, 2020
1 parent e1ac9d7 commit a7a6c2f
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 a7a6c2f

Please sign in to comment.