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