From 64ef9cc4e745b3481c8724566d04f27beb7a381f Mon Sep 17 00:00:00 2001 From: PJ Dietz Date: Sat, 21 Feb 2015 16:01:06 -0500 Subject: [PATCH] Update copyright and rename a couple tests --- src/pjdietz/WellRESTed/Exceptions/CurlException.php | 2 +- src/pjdietz/WellRESTed/Exceptions/HttpExceptions.php | 2 +- src/pjdietz/WellRESTed/Exceptions/ParseException.php | 2 +- src/pjdietz/WellRESTed/Interfaces/HandlerInterface.php | 2 +- src/pjdietz/WellRESTed/Interfaces/RequestInterface.php | 2 +- src/pjdietz/WellRESTed/Interfaces/ResponseInterface.php | 2 +- src/pjdietz/WellRESTed/Request.php | 2 +- src/pjdietz/WellRESTed/Response.php | 2 +- src/pjdietz/WellRESTed/RouteBuilder.php | 2 +- test/HandlerTest.php | 2 +- test/RouterTest.php | 4 ++-- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/pjdietz/WellRESTed/Exceptions/CurlException.php b/src/pjdietz/WellRESTed/Exceptions/CurlException.php index 9034ac9..5f7e5e0 100644 --- a/src/pjdietz/WellRESTed/Exceptions/CurlException.php +++ b/src/pjdietz/WellRESTed/Exceptions/CurlException.php @@ -4,7 +4,7 @@ * pjdietz\WellRESTed\Exceptions\CurlException * * @author PJ Dietz - * @copyright Copyright 2014 by PJ Dietz + * @copyright Copyright 2015 by PJ Dietz * @license MIT */ diff --git a/src/pjdietz/WellRESTed/Exceptions/HttpExceptions.php b/src/pjdietz/WellRESTed/Exceptions/HttpExceptions.php index 8c90194..0705527 100644 --- a/src/pjdietz/WellRESTed/Exceptions/HttpExceptions.php +++ b/src/pjdietz/WellRESTed/Exceptions/HttpExceptions.php @@ -11,7 +11,7 @@ * HTTP status code and the exception's message as the response body. * * @author PJ Dietz - * @copyright Copyright 2014 by PJ Dietz + * @copyright Copyright 2015 by PJ Dietz * @license MIT */ diff --git a/src/pjdietz/WellRESTed/Exceptions/ParseException.php b/src/pjdietz/WellRESTed/Exceptions/ParseException.php index e89a5cc..7c4b2f3 100644 --- a/src/pjdietz/WellRESTed/Exceptions/ParseException.php +++ b/src/pjdietz/WellRESTed/Exceptions/ParseException.php @@ -4,7 +4,7 @@ * pjdietz\WellRESTed\Exceptions\ParseException * * @author PJ Dietz - * @copyright Copyright 2014 by PJ Dietz + * @copyright Copyright 2015 by PJ Dietz * @license MIT */ diff --git a/src/pjdietz/WellRESTed/Interfaces/HandlerInterface.php b/src/pjdietz/WellRESTed/Interfaces/HandlerInterface.php index e9aed1b..c36790e 100644 --- a/src/pjdietz/WellRESTed/Interfaces/HandlerInterface.php +++ b/src/pjdietz/WellRESTed/Interfaces/HandlerInterface.php @@ -4,7 +4,7 @@ * pjdietz\WellRESTed\Interfaces\HandlerInterface * * @author PJ Dietz - * @copyright Copyright 2014 by PJ Dietz + * @copyright Copyright 2015 by PJ Dietz * @license MIT */ diff --git a/src/pjdietz/WellRESTed/Interfaces/RequestInterface.php b/src/pjdietz/WellRESTed/Interfaces/RequestInterface.php index edb1f4b..e68ced6 100644 --- a/src/pjdietz/WellRESTed/Interfaces/RequestInterface.php +++ b/src/pjdietz/WellRESTed/Interfaces/RequestInterface.php @@ -4,7 +4,7 @@ * pjdietz\WellRESTed\Interfaces\RequestInterface * * @author PJ Dietz - * @copyright Copyright 2014 by PJ Dietz + * @copyright Copyright 2015 by PJ Dietz * @license MIT */ diff --git a/src/pjdietz/WellRESTed/Interfaces/ResponseInterface.php b/src/pjdietz/WellRESTed/Interfaces/ResponseInterface.php index 446ba6f..978db76 100644 --- a/src/pjdietz/WellRESTed/Interfaces/ResponseInterface.php +++ b/src/pjdietz/WellRESTed/Interfaces/ResponseInterface.php @@ -4,7 +4,7 @@ * pjdietz\WellRESTed\Interfaces\ResponseInterface * * @author PJ Dietz - * @copyright Copyright 2014 by PJ Dietz + * @copyright Copyright 2015 by PJ Dietz * @license MIT */ diff --git a/src/pjdietz/WellRESTed/Request.php b/src/pjdietz/WellRESTed/Request.php index 11b54d7..341a946 100644 --- a/src/pjdietz/WellRESTed/Request.php +++ b/src/pjdietz/WellRESTed/Request.php @@ -4,7 +4,7 @@ * pjdietz\WellRESTed\Request * * @author PJ Dietz - * @copyright Copyright 2014 by PJ Dietz + * @copyright Copyright 2015 by PJ Dietz * @license MIT */ diff --git a/src/pjdietz/WellRESTed/Response.php b/src/pjdietz/WellRESTed/Response.php index 63194f9..aee0eaf 100644 --- a/src/pjdietz/WellRESTed/Response.php +++ b/src/pjdietz/WellRESTed/Response.php @@ -4,7 +4,7 @@ * pjdietz\WellRESTed\Response * * @author PJ Dietz - * @copyright Copyright 2014 by PJ Dietz + * @copyright Copyright 2015 by PJ Dietz * @license MIT */ diff --git a/src/pjdietz/WellRESTed/RouteBuilder.php b/src/pjdietz/WellRESTed/RouteBuilder.php index bed45c3..89631b9 100644 --- a/src/pjdietz/WellRESTed/RouteBuilder.php +++ b/src/pjdietz/WellRESTed/RouteBuilder.php @@ -4,7 +4,7 @@ * pjdietz\WellRESTed\RouteBuilder * * @author PJ Dietz - * @copyright Copyright 2014 by PJ Dietz + * @copyright Copyright 2015 by PJ Dietz * @license MIT */ diff --git a/test/HandlerTest.php b/test/HandlerTest.php index 405e397..b3461b3 100644 --- a/test/HandlerTest.php +++ b/test/HandlerTest.php @@ -54,7 +54,7 @@ class HandlerTest extends \PHPUnit_Framework_TestCase $this->assertEquals(404, $response->getStatusCode()); } - public function testReadAllowedMethods() + public function testProvidesAllowHeader() { $request = $this->prophesize("\\pjdietz\\WellRESTed\\Interfaces\\RequestInterface"); $request->getMethod()->willReturn("OPTIONS"); diff --git a/test/RouterTest.php b/test/RouterTest.php index 8ccead6..89cf431 100644 --- a/test/RouterTest.php +++ b/test/RouterTest.php @@ -265,7 +265,7 @@ class RouterTest extends \PHPUnit_Framework_TestCase $errorHandler->getResponse(Argument::cetera())->shouldHaveBeenCalled(); } - public function testDeprecatedSetStaticRoute() + public function testDeprecatedSetsStaticRoute() { $this->handler->getResponse(Argument::cetera())->willReturn($this->response->reveal()); $this->request->getPath()->willReturn("/cats/"); @@ -277,7 +277,7 @@ class RouterTest extends \PHPUnit_Framework_TestCase $this->handler->getResponse(Argument::cetera())->shouldHaveBeenCalled(); } - public function testDeprecatedSetPrefixRoute() + public function testDeprecatedSetsPrefixRoute() { $this->handler->getResponse(Argument::cetera())->willReturn($this->response->reveal()); $this->request->getPath()->willReturn("/cats/molly");