MvcLite\File::setContents
Setter for the contents property.
Signature
public function setContents([string|null
$contents = null] )
Parameters
$contents
—
object
Returns
- File
- $this for object-chaining.
Test Coverage
Information
- Coverage: 2/2 Lines (100%)
- Tests: 3
- Passed: 3 (100%)
Tests
- [ PASSED ] — MvcLite\FileTest::testLoad with data set "Good path, should exist"
- [ PASSED ] — MvcLite\FileTest::testSave with data set "directory exists, expect save"
- [ PASSED ] — MvcLite\FileTest::testSave with data set "directory does not exist, do not expect save"