/** * @covers Bedrock\View::setErrors * * @return void */ public function testSetErrors() { // Setup $errors = array( array('msg' => 'one'), array('msg' => 'two'), array('msg' => 'three'), array('msg' => 'four'), array('msg' => 'five') ); $this->_object->setErrors($errors); // Assertions $this->assertAttributeSame( array( 'error' => array( 'one', 'two', 'three', 'four', 'five' ) ), '_messages', $this->_object ); }