Robbie\Psr7\Tests\HttpRequestAdapterTest
Synopsis
class HttpRequestAdapterTest
extends PHPUnit_Framework_TestCase
{
- // members
- protected boolean $backupGlobals = false;
- // methods
- public void testReturnsPsr7CompliantClass()
- public void testGetImmutableInterfaceAfterChangingQueryParams()
- public void testPostedDataCanBeReturned()
- public void testGetHttpRequestFromPsr7Interface()
- protected ServerRequestInterface getInterface()
- protected array mockRequestData()
Hierarchy
Extends
- PHPUnit_Framework_TestCase
Members
protected
-
$backupGlobals
{@inheritDoc}
Methods
protected
public
- testGetHttpRequestFromPsr7Interface() — Test that a PSR-7 interface can be imported into a HTTPRequest interface
- testGetImmutableInterfaceAfterChangingQueryParams() — Ensure that the returned interface is immutable as per PSR-7 specs
- testPostedDataCanBeReturned() — Test that POSTed data from the request body can be returned
- testReturnsPsr7CompliantClass() — Ensure that the Request class returned is a PSR-7 interface