Пример #1
0
 /**
  * Tests for a successful sending.
  */
 public function testSendOk()
 {
     // Skips the test if no SMTP connection is defined
     if (empty($GLOBALS['smtp'])) {
         $this->markTestSkipped('Smtp host not set');
     }
     $test = new Smtp('Smtp', $GLOBALS['smtp'], '*****@*****.**');
     $result = $test->run();
     $this->assertEquals(\Jyxo\Beholder\Result::SUCCESS, $result->getStatus());
     $this->assertEquals($GLOBALS['smtp'], $result->getDescription());
 }