MvcLite\Error::addError
Adds errors to the instance's error property.
Signature
protected function addError([array
$error = ] )
Parameters
$error
—
array
- An array representing an error.
Returns
- Error
- $this for object-chaining.
Test Coverage
Information
- Coverage: 2/2 Lines (100%)
- Tests: 4
- Passed: 4 (100%)
Tests
- [ PASSED ] — MvcLite\ErrorTest::testHandle with data set #0
- [ PASSED ] — MvcLite\ErrorTest::testHandle with data set #1
- [ PASSED ] — MvcLite\ErrorTest::testHandle with data set #2
- [ PASSED ] — MvcLite\ErrorTest::testHandle with data set #3