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

Public Member Functions

 testStatusCodeIs200ByDefault ()
 
 testStatusCodeMutatorReturnsCloneWithChanges ()
 
 invalidStatusCodesDataProvider ()
 
 testCannotSetInvalidStatusCode ($code)
 
 testReasonPhraseDefaultsToStandards ()
 
 testCanSetCustomReasonPhrase ()
 
 testConstructorRaisesExceptionForInvalidStream ()
 
 testConstructorCanAcceptAllMessageParts ()
 
 invalidStatusDataProvider ()
 
 testConstructorRaisesExceptionForInvalidStatus ($code)
 
 invalidResponseBodyDataProvider ()
 
 testConstructorRaisesExceptionForInvalidBody ($body)
 
 constructorIgonoresInvalidHeaders ()
 
 headersWithInjectionVectorsDataProvider ()
 
 cnstructorRaisesExceptionForHeadersWithCRLFVectors ($name, $value)
 

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

 $response
 
- 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 25 of file core/Tests/Unit/Http/ResponseTest.php.

Member Function Documentation

cnstructorRaisesExceptionForHeadersWithCRLFVectors (   $name,
  $value 
)
Test:
headersWithInjectionVectorsDataProvider

Definition at line 227 of file core/Tests/Unit/Http/ResponseTest.php.

constructorIgonoresInvalidHeaders ( )
Test:

Definition at line 182 of file core/Tests/Unit/Http/ResponseTest.php.

References ResponseTest\$response.

headersWithInjectionVectorsDataProvider ( )
Returns
array

Definition at line 205 of file core/Tests/Unit/Http/ResponseTest.php.

invalidResponseBodyDataProvider ( )
Returns
array

Definition at line 156 of file core/Tests/Unit/Http/ResponseTest.php.

invalidStatusCodesDataProvider ( )
Returns
array

Definition at line 58 of file core/Tests/Unit/Http/ResponseTest.php.

invalidStatusDataProvider ( )
Returns
array

Definition at line 128 of file core/Tests/Unit/Http/ResponseTest.php.

setUp ( )
protected

Definition at line 32 of file core/Tests/Unit/Http/ResponseTest.php.

testCannotSetInvalidStatusCode (   $code)

invalidStatusCodesDataProvider

Test:

Definition at line 75 of file core/Tests/Unit/Http/ResponseTest.php.

testCanSetCustomReasonPhrase ( )
Test:

Definition at line 93 of file core/Tests/Unit/Http/ResponseTest.php.

References ResponseTest\$response.

testConstructorCanAcceptAllMessageParts ( )
Test:

Definition at line 111 of file core/Tests/Unit/Http/ResponseTest.php.

References ResponseTest\$response.

testConstructorRaisesExceptionForInvalidBody (   $body)

invalidResponseBodyDataProvider

Test:

Definition at line 172 of file core/Tests/Unit/Http/ResponseTest.php.

testConstructorRaisesExceptionForInvalidStatus (   $code)

invalidStatusDataProvider

Test:

Definition at line 146 of file core/Tests/Unit/Http/ResponseTest.php.

testConstructorRaisesExceptionForInvalidStream ( )
Test:

Definition at line 102 of file core/Tests/Unit/Http/ResponseTest.php.

testReasonPhraseDefaultsToStandards ( )
Test:

Definition at line 84 of file core/Tests/Unit/Http/ResponseTest.php.

References ResponseTest\$response.

testStatusCodeIs200ByDefault ( )
Test:

Definition at line 40 of file core/Tests/Unit/Http/ResponseTest.php.

testStatusCodeMutatorReturnsCloneWithChanges ( )
Test:

Definition at line 48 of file core/Tests/Unit/Http/ResponseTest.php.

References ResponseTest\$response.

Member Data Documentation