diff --git a/src/Exception/FileNotFoundException.php b/src/Exception/FileNotFoundException.php index 3d0d87e..703b10d 100644 --- a/src/Exception/FileNotFoundException.php +++ b/src/Exception/FileNotFoundException.php @@ -12,7 +12,7 @@ * Class FileNotFoundException * @package Toolkit\File\Exception */ -class FileNotFoundException extends \Exception +class FileNotFoundException extends \RuntimeException { } diff --git a/src/ReadTrait.php b/src/ReadTrait.php index 8f048be..dd6bc4d 100644 --- a/src/ReadTrait.php +++ b/src/ReadTrait.php @@ -12,9 +12,9 @@ use Toolkit\File\Exception\FileNotFoundException; use Toolkit\File\Exception\FileSystemException; use Toolkit\File\Exception\FileReadException; -use Toolkit\File\Parsers\IniParser; -use Toolkit\File\Parsers\JsonParser; -use Toolkit\File\Parsers\YmlParser; +use Toolkit\File\Parser\IniParser; +use Toolkit\File\Parser\JsonParser; +use Toolkit\File\Parser\YmlParser; /** * Class Read diff --git a/test/boot.php b/test/boot.php index cd62e85..eacaffd 100644 --- a/test/boot.php +++ b/test/boot.php @@ -18,6 +18,7 @@ $file = __DIR__ . "/{$path}.php"; } elseif (0 === strpos($class,'Toolkit\File\\')) { $path = str_replace('\\', '/', substr($class, strlen('Toolkit\File\\'))); + $file = dirname(__DIR__) . "/src/{$path}.php"; }