public function testMessageSetReplyTo() { $this->assertInstanceOf('\\nickcv\\mandrill\\Message', $this->_message->setReplyTo('*****@*****.**')); $this->assertInstanceOf('\\nickcv\\mandrill\\Message', $this->_message->setReplyTo(['*****@*****.**' => 'fakeuser', '*****@*****.**', '*****@*****.**', 'asdf', 'fakeuser' => '*****@*****.**'])); $contactList = $this->_message->getReplyTo(); $this->assertCount(3, $contactList); $this->assertContains('*****@*****.**', $contactList); $this->assertArrayHasKey('*****@*****.**', $contactList); $this->assertContains('*****@*****.**', $contactList); $this->assertContains('fakeuser', $contactList); }