Update copyright and rename a couple tests
This commit is contained in:
parent
b582fcf546
commit
64ef9cc4e7
|
|
@ -4,7 +4,7 @@
|
|||
* pjdietz\WellRESTed\Exceptions\CurlException
|
||||
*
|
||||
* @author PJ Dietz <pj@pjdietz.com>
|
||||
* @copyright Copyright 2014 by PJ Dietz
|
||||
* @copyright Copyright 2015 by PJ Dietz
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
* HTTP status code and the exception's message as the response body.
|
||||
*
|
||||
* @author PJ Dietz <pj@pjdietz.com>
|
||||
* @copyright Copyright 2014 by PJ Dietz
|
||||
* @copyright Copyright 2015 by PJ Dietz
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* pjdietz\WellRESTed\Exceptions\ParseException
|
||||
*
|
||||
* @author PJ Dietz <pj@pjdietz.com>
|
||||
* @copyright Copyright 2014 by PJ Dietz
|
||||
* @copyright Copyright 2015 by PJ Dietz
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* pjdietz\WellRESTed\Interfaces\HandlerInterface
|
||||
*
|
||||
* @author PJ Dietz <pj@pjdietz.com>
|
||||
* @copyright Copyright 2014 by PJ Dietz
|
||||
* @copyright Copyright 2015 by PJ Dietz
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* pjdietz\WellRESTed\Interfaces\RequestInterface
|
||||
*
|
||||
* @author PJ Dietz <pj@pjdietz.com>
|
||||
* @copyright Copyright 2014 by PJ Dietz
|
||||
* @copyright Copyright 2015 by PJ Dietz
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* pjdietz\WellRESTed\Interfaces\ResponseInterface
|
||||
*
|
||||
* @author PJ Dietz <pj@pjdietz.com>
|
||||
* @copyright Copyright 2014 by PJ Dietz
|
||||
* @copyright Copyright 2015 by PJ Dietz
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* pjdietz\WellRESTed\Request
|
||||
*
|
||||
* @author PJ Dietz <pj@pjdietz.com>
|
||||
* @copyright Copyright 2014 by PJ Dietz
|
||||
* @copyright Copyright 2015 by PJ Dietz
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* pjdietz\WellRESTed\Response
|
||||
*
|
||||
* @author PJ Dietz <pj@pjdietz.com>
|
||||
* @copyright Copyright 2014 by PJ Dietz
|
||||
* @copyright Copyright 2015 by PJ Dietz
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* pjdietz\WellRESTed\RouteBuilder
|
||||
*
|
||||
* @author PJ Dietz <pj@pjdietz.com>
|
||||
* @copyright Copyright 2014 by PJ Dietz
|
||||
* @copyright Copyright 2015 by PJ Dietz
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue