function testSetErrorsReference() { $error_list = new WactFormErrorList(); $form = new WactFormComponent('my_id'); $form->setErrors($error_list); $this->assertReference($error_list, $form->getErrorsDataSet()); }