public function testAddToAndGetToArray()
 {
     $getToArray = getMethod('MailForm', 'getToArray');
     $mailform = new MailForm();
     $mailform->addTo('*****@*****.**', 'to1');
     $tos = $getToArray->invokeArgs($mailform, array());
     $this->assertCount(1, $tos);
     $this->assertArrayHasKey('*****@*****.**', $tos);
     $this->assertEquals('to1', $tos['*****@*****.**']);
     $mailform->addTo('*****@*****.**', 'to2');
     $tos = $getToArray->invokeArgs($mailform, array());
     $this->assertCount(2, $tos);
     $this->assertArrayHasKey('*****@*****.**', $tos);
     $this->assertEquals('to2', $tos['*****@*****.**']);
 }