public function testSmtpMissing()
{
// Skips the test if the class is already loaded
if (class_exists(\Jyxo\Mail\Sender\Smtp::class, false)) {
$this->markTestSkipped(sprintf('%s already loaded', \Jyxo\Mail\Sender\Smtp::class));
}
$test = new Smtp('Smtp', '', '', '');
// Turns autoload off
$this->disableAutoload();
$result = $test->run();
// Turns autoload on
$this->enableAutoload();
$this->assertEquals(\Jyxo\Beholder\Result::NOT_APPLICABLE, $result->getStatus());
$this->assertEquals(sprintf('Class %s missing', \Jyxo\Mail\Sender\Smtp::class), $result->getDescription());
}