Skip to content

Commit

Permalink
Adjust tests to new code
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Feb 10, 2016
1 parent 4f54cc3 commit 6764455
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/SelfVerifyTest.php → test/Http01VerificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Amp\Artax\Client;
use Amp\Artax\Response;

class SelfVerifyTest extends \PHPUnit_Framework_TestCase {
class Http01VerificationTest extends \PHPUnit_Framework_TestCase {
/**
* @test
*/
Expand All @@ -24,7 +24,7 @@ public function ignoresWrongPeerName() {
$payload = trim($payloadResponse->getBody());

try {
yield $service->selfVerify("kelunik.com", $token, $payload);
yield $service->verifyHttp01Challenge("kelunik.com", $token, $payload);
$this->assertTrue(true);
} catch (\Throwable $e) {
$this->fail("Didn't ignore invalid common name. " . $e);
Expand Down Expand Up @@ -52,7 +52,7 @@ public function failsOnDiffPayload() {
/** @var Response $payloadResponse */
$payload = "foobar";

yield $service->selfVerify("kelunik.com", $token, $payload);
yield $service->verifyHttp01Challenge("kelunik.com", $token, $payload);

\Amp\stop();
});
Expand Down

0 comments on commit 6764455

Please sign in to comment.