MvcLite\File::checkFileExists
method to throw an exception if a given filename doesn't exist
Signature
protected function checkFileExists(string
$filename )
Parameters
$filename
—
string
Test Coverage
Information
- Coverage: 3/3 Lines (100%)
- Tests: 4
- Passed: 4 (100%)
Tests
- [ PASSED ] — MvcLite\FileTest::testLoad with data set "Bad path, should not exist"
- [ PASSED ] — MvcLite\FileTest::testLoad with data set "Good path, should exist"
- [ PASSED ] — MvcLite\FileTest::testLoad with data set "Good path, bad file, should not exist"
- [ PASSED ] — MvcLite\FileTest::testDelete with data set "file exists"