MvcLite\Config::init
Init hook.
Signature
Parameters
$config
—
object
- A filepath to an ini file, or an array of configuration options
Returns
- Config
- Returns $this, for object-chaining.
Test Coverage
Information
- Coverage: 7/7 Lines (100%)
- Tests: 3
- Passed: 3 (100%)
Tests
- [ PASSED ] — MvcLite\ConfigTest::testInit with data set "simple config, no exception"
- [ PASSED ] — MvcLite\ConfigTest::testInit with data set "invalid file location, expect exception"
- [ PASSED ] — MvcLite\ConfigTest::testInit with data set "valid file location, no exception"