TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ServerRequestTest Class Reference
Inheritance diagram for ServerRequestTest:
UnitTestCase BaseTestCase

Public Member Functions

 getServerParamsAreEmptyByDefault ()
 
 getQueryParamsAreEmptyByDefault ()
 
 withQueryParamsMutatorReturnsCloneWithChanges ()
 
 getCookieParamsAreEmptyByDefault ()
 
 withCookieParamsMutatorReturnsCloneWithChanges ()
 
 getUploadedFilesAreEmptyByDefault ()
 
 getParsedBodyIsEmptyByDefault ()
 
 withParsedBodyMutatorReturnsCloneWithChanges ()
 
 getAttributesAreEmptyByDefault ()
 
 withAttributeMutatorReturnsCloneWithChanges ()
 
 withoutAttributeReturnsCloneWithoutAttribute ($request)
 
 constructorUsesProvidedArguments ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $request
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for

Adapted from https://github.com/phly/http/

Definition at line 26 of file ServerRequestTest.php.

Member Function Documentation

constructorUsesProvidedArguments ( )
Test:

Definition at line 146 of file ServerRequestTest.php.

References ServerRequestTest\$request.

getAttributesAreEmptyByDefault ( )
Test:

Definition at line 114 of file ServerRequestTest.php.

getCookieParamsAreEmptyByDefault ( )
Test:

Definition at line 68 of file ServerRequestTest.php.

getParsedBodyIsEmptyByDefault ( )
Test:

Definition at line 95 of file ServerRequestTest.php.

getQueryParamsAreEmptyByDefault ( )
Test:

Definition at line 49 of file ServerRequestTest.php.

getServerParamsAreEmptyByDefault ( )
Test:

Definition at line 41 of file ServerRequestTest.php.

getUploadedFilesAreEmptyByDefault ( )
Test:

Definition at line 87 of file ServerRequestTest.php.

setUp ( )
protected

Definition at line 33 of file ServerRequestTest.php.

withAttributeMutatorReturnsCloneWithChanges ( )

testAttributesAreEmptyByDefault

Test:

Definition at line 123 of file ServerRequestTest.php.

References ServerRequestTest\$request.

withCookieParamsMutatorReturnsCloneWithChanges ( )
Test:

Definition at line 76 of file ServerRequestTest.php.

References ServerRequestTest\$request.

withoutAttributeReturnsCloneWithoutAttribute (   $request)

testAttributeMutatorReturnsCloneWithChanges

Test:

Definition at line 136 of file ServerRequestTest.php.

References ServerRequestTest\$request.

withParsedBodyMutatorReturnsCloneWithChanges ( )
Test:

Definition at line 103 of file ServerRequestTest.php.

References ServerRequestTest\$request.

withQueryParamsMutatorReturnsCloneWithChanges ( )
Test:

Definition at line 57 of file ServerRequestTest.php.

References ServerRequestTest\$request.

Member Data Documentation