src/Traits/FileTrait.php
private function validate()
    {
        $file = $this->file;

        if (!is_file($file)) {
            throw new \RuntimeException(sprintf("'%s' is not a file", $file));
        }

        if (!is_readable($file)) {
            // @codeCoverageIgnoreStart
            throw new \RuntimeException(sprintf("'%s' is not a readable file", $file));
            // @codeCoverageIgnoreEnd
        }
    }
private function validate()
    {
        $file = $this->file;

        if (!is_file($file)) {
            throw new \RuntimeException(sprintf("'%s' is not a file", $file));
        }

        if (!is_readable($file)) {
            // @codeCoverageIgnoreStart
            throw new \RuntimeException(sprintf("'%s' is not a readable file", $file));
            // @codeCoverageIgnoreEnd
        }
    }
Validates the file passed to see if it is a file and is readable

@throws \RuntimeException If the file passed is not a file
@throws \RuntimeException If the file passed is not readable