validateCredentials(); $this->assertTrue($result); } /** * @depends testNewClientConnection */ public function sendSimpleTestMessage(){ $client = new Client("key-3ax6xnjp29jd6fds4gc373sgvjxteol0", "samples.mailgun.org", false); $result = $client->sendMessage(array("from" => "Excited User ", "to" => "travis@tswientek.com", "subject" => "Hello", "Text" => "PHP Unit Test Success!", "o:testmode" => false)); $results = $result->getResponseCode(); $this->assertEquals("20", $results); } } ?>