Skip to content

Commit

Permalink
Give up on that test config
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Feb 28, 2022
1 parent 70c20c6 commit 3525f1b
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions test/OAuth/OAuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,12 @@ public function testOAuth()
$PHPMailer->getOAuth(),
'Setting Oauth property to an instance of the OAuth class failed'
);
$this->expectException(\Error::class);
$PHPMailer->setOAuth(new \stdClass());
$PHPMailer->setOAuth(new DummyOAuthProvider());
}

/**
* Test OAuth class on more recent PHP versions.
*
* @requires PHP >= 7.0
* @covers PHPMailer\PHPMailer\PHPMailer::setOAuth
* @covers PHPMailer\PHPMailer\OAuthTokenProvider
*/
public function testOAuthRecent()
{
$PHPMailer = new PHPMailer(true);

$this->expectException(\TypeError::class);
$PHPMailer->setOAuth(new \stdClass());
self::assertInstanceOf(
OAuthTokenProvider::class,
$PHPMailer->getOAuth(),
'Setting Oauth property to an instance of the OAuth class failed (2)'
);
}
}

Expand Down

0 comments on commit 3525f1b

Please sign in to comment.