Skip to content

Commit

Permalink
Merge pull request #1150 from samsonasik/splfile-info
Browse files Browse the repository at this point in the history
SplFileInfo type case
  • Loading branch information
lonnieezell authored Aug 8, 2018
2 parents 6554812 + cc8376c commit dd59384
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions system/Files/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @since Version 3.0.0
* @filesource
*/
use SPLFileInfo;
use SplFileInfo;
use CodeIgniter\Files\Exceptions\FileException;
use CodeIgniter\Files\Exceptions\FileNotFoundException;

Expand All @@ -52,7 +52,7 @@ class File extends SplFileInfo
//--------------------------------------------------------------------

/**
* Run our SPLFileInfo constructor with an optional verification
* Run our SplFileInfo constructor with an optional verification
* that the path is really a file.
*
* @param string $path
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Files/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testRandomName()
$this->assertNotEquals($result1, $file->getRandomName());
}

public function testCanAccessSPLFileInfoMethods()
public function testCanAccessSplFileInfoMethods()
{
$file = new File(BASEPATH . 'Common.php');
$this->assertEquals('file', $file->getType());
Expand Down

0 comments on commit dd59384

Please sign in to comment.