public function testIsSelectedValue()
 {
     $FormConfig = getProperty('MailForm', 'FormConfig');
     $mailform = new MailForm();
     $this->assertTrue($mailform->isSelectedValue('key', '1', true));
     $this->assertFalse($mailform->isSelectedValue('key', '1'));
     $mailform = $this->getMockBuilder('MailForm')->setMethods(array('getValue'))->getMock();
     $mailform->expects($this->any())->method('getValue')->with('key')->will($this->returnValue('1'));
     $selectValues = array('1' => 'option1', '2' => 'option2', '3' => 'option3');
     $FormConfig->setValue($mailform, array('items' => array('key' => array('selectvalues' => $selectValues))));
     $this->assertTrue($mailform->isSelectedValue('key', '1'));
     $this->assertFalse($mailform->isSelectedValue('key', '2'));
     $mailform->expects($this->any())->method('getValue')->with('key')->will($this->returnValue('1', '2'));
     $this->assertTrue($mailform->isSelectedValue('key', '1'));
     $this->assertFalse($mailform->isSelectedValue('key', '3'));
 }