From 286453f43b230b2e5a9f948b2a4716eaca832735 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 28 Jan 2019 08:35:45 -0500 Subject: [PATCH] Rename verificationHandler->validationHandler --- .../{VerificationHandler.php => ValidationHandler.php} | 2 +- ...cationHandlerTest.php => ValidationHandlerTest.php} | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename src/Activities/{VerificationHandler.php => ValidationHandler.php} (95%) rename test/Activities/{VerificationHandlerTest.php => ValidationHandlerTest.php} (94%) diff --git a/src/Activities/VerificationHandler.php b/src/Activities/ValidationHandler.php similarity index 95% rename from src/Activities/VerificationHandler.php rename to src/Activities/ValidationHandler.php index 6cea379..2b3c6f6 100644 --- a/src/Activities/VerificationHandler.php +++ b/src/Activities/ValidationHandler.php @@ -6,7 +6,7 @@ use ActivityPub\Activities\OutboxActivityEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; -class VerificationHandler implements EventSubscriberInterface +class ValidationHandler implements EventSubscriberInterface { public static function getSubscribedEvents() { diff --git a/test/Activities/VerificationHandlerTest.php b/test/Activities/ValidationHandlerTest.php similarity index 94% rename from test/Activities/VerificationHandlerTest.php rename to test/Activities/ValidationHandlerTest.php index ad625c2..9b78a60 100644 --- a/test/Activities/VerificationHandlerTest.php +++ b/test/Activities/ValidationHandlerTest.php @@ -3,14 +3,14 @@ namespace ActivityPub\Test\Activities; use ActivityPub\Activities\InboxActivityEvent; use ActivityPub\Activities\OutboxActivityEvent; -use ActivityPub\Activities\VerificationHandler; +use ActivityPub\Activities\ValidationHandler; use ActivityPub\Test\TestUtils\TestActivityPubObject; use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; -class VerificationHandlerTest extends TestCase +class ValidationHandlerTest extends TestCase { /** * @var EventDispatcher @@ -20,10 +20,10 @@ class VerificationHandlerTest extends TestCase public function setUp() { $this->eventDispatcher = new EventDispatcher(); - $verificationHandler = new VerificationHandler(); - $this->eventDispatcher->addSubscriber( $verificationHandler ); + $validationHandler = new ValidationHandler(); + $this->eventDispatcher->addSubscriber( $validationHandler ); } - public function testVerificationHandler() + public function testValidationHandler() { $testCases = array( array(