Update copyright and rename a couple tests

This commit is contained in:
PJ Dietz 2015-02-21 16:01:06 -05:00
parent b582fcf546
commit 64ef9cc4e7
11 changed files with 12 additions and 12 deletions

View File

@ -4,7 +4,7 @@
* pjdietz\WellRESTed\Exceptions\CurlException * pjdietz\WellRESTed\Exceptions\CurlException
* *
* @author PJ Dietz <pj@pjdietz.com> * @author PJ Dietz <pj@pjdietz.com>
* @copyright Copyright 2014 by PJ Dietz * @copyright Copyright 2015 by PJ Dietz
* @license MIT * @license MIT
*/ */

View File

@ -11,7 +11,7 @@
* HTTP status code and the exception's message as the response body. * HTTP status code and the exception's message as the response body.
* *
* @author PJ Dietz <pj@pjdietz.com> * @author PJ Dietz <pj@pjdietz.com>
* @copyright Copyright 2014 by PJ Dietz * @copyright Copyright 2015 by PJ Dietz
* @license MIT * @license MIT
*/ */

View File

@ -4,7 +4,7 @@
* pjdietz\WellRESTed\Exceptions\ParseException * pjdietz\WellRESTed\Exceptions\ParseException
* *
* @author PJ Dietz <pj@pjdietz.com> * @author PJ Dietz <pj@pjdietz.com>
* @copyright Copyright 2014 by PJ Dietz * @copyright Copyright 2015 by PJ Dietz
* @license MIT * @license MIT
*/ */

View File

@ -4,7 +4,7 @@
* pjdietz\WellRESTed\Interfaces\HandlerInterface * pjdietz\WellRESTed\Interfaces\HandlerInterface
* *
* @author PJ Dietz <pj@pjdietz.com> * @author PJ Dietz <pj@pjdietz.com>
* @copyright Copyright 2014 by PJ Dietz * @copyright Copyright 2015 by PJ Dietz
* @license MIT * @license MIT
*/ */

View File

@ -4,7 +4,7 @@
* pjdietz\WellRESTed\Interfaces\RequestInterface * pjdietz\WellRESTed\Interfaces\RequestInterface
* *
* @author PJ Dietz <pj@pjdietz.com> * @author PJ Dietz <pj@pjdietz.com>
* @copyright Copyright 2014 by PJ Dietz * @copyright Copyright 2015 by PJ Dietz
* @license MIT * @license MIT
*/ */

View File

@ -4,7 +4,7 @@
* pjdietz\WellRESTed\Interfaces\ResponseInterface * pjdietz\WellRESTed\Interfaces\ResponseInterface
* *
* @author PJ Dietz <pj@pjdietz.com> * @author PJ Dietz <pj@pjdietz.com>
* @copyright Copyright 2014 by PJ Dietz * @copyright Copyright 2015 by PJ Dietz
* @license MIT * @license MIT
*/ */

View File

@ -4,7 +4,7 @@
* pjdietz\WellRESTed\Request * pjdietz\WellRESTed\Request
* *
* @author PJ Dietz <pj@pjdietz.com> * @author PJ Dietz <pj@pjdietz.com>
* @copyright Copyright 2014 by PJ Dietz * @copyright Copyright 2015 by PJ Dietz
* @license MIT * @license MIT
*/ */

View File

@ -4,7 +4,7 @@
* pjdietz\WellRESTed\Response * pjdietz\WellRESTed\Response
* *
* @author PJ Dietz <pj@pjdietz.com> * @author PJ Dietz <pj@pjdietz.com>
* @copyright Copyright 2014 by PJ Dietz * @copyright Copyright 2015 by PJ Dietz
* @license MIT * @license MIT
*/ */

View File

@ -4,7 +4,7 @@
* pjdietz\WellRESTed\RouteBuilder * pjdietz\WellRESTed\RouteBuilder
* *
* @author PJ Dietz <pj@pjdietz.com> * @author PJ Dietz <pj@pjdietz.com>
* @copyright Copyright 2014 by PJ Dietz * @copyright Copyright 2015 by PJ Dietz
* @license MIT * @license MIT
*/ */

View File

@ -54,7 +54,7 @@ class HandlerTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(404, $response->getStatusCode()); $this->assertEquals(404, $response->getStatusCode());
} }
public function testReadAllowedMethods() public function testProvidesAllowHeader()
{ {
$request = $this->prophesize("\\pjdietz\\WellRESTed\\Interfaces\\RequestInterface"); $request = $this->prophesize("\\pjdietz\\WellRESTed\\Interfaces\\RequestInterface");
$request->getMethod()->willReturn("OPTIONS"); $request->getMethod()->willReturn("OPTIONS");

View File

@ -265,7 +265,7 @@ class RouterTest extends \PHPUnit_Framework_TestCase
$errorHandler->getResponse(Argument::cetera())->shouldHaveBeenCalled(); $errorHandler->getResponse(Argument::cetera())->shouldHaveBeenCalled();
} }
public function testDeprecatedSetStaticRoute() public function testDeprecatedSetsStaticRoute()
{ {
$this->handler->getResponse(Argument::cetera())->willReturn($this->response->reveal()); $this->handler->getResponse(Argument::cetera())->willReturn($this->response->reveal());
$this->request->getPath()->willReturn("/cats/"); $this->request->getPath()->willReturn("/cats/");
@ -277,7 +277,7 @@ class RouterTest extends \PHPUnit_Framework_TestCase
$this->handler->getResponse(Argument::cetera())->shouldHaveBeenCalled(); $this->handler->getResponse(Argument::cetera())->shouldHaveBeenCalled();
} }
public function testDeprecatedSetPrefixRoute() public function testDeprecatedSetsPrefixRoute()
{ {
$this->handler->getResponse(Argument::cetera())->willReturn($this->response->reveal()); $this->handler->getResponse(Argument::cetera())->willReturn($this->response->reveal());
$this->request->getPath()->willReturn("/cats/molly"); $this->request->getPath()->willReturn("/cats/molly");