File
testscases equest.test.php
Package
Default
Class hierarchy
PHPUnit_Framework_TestCase
RequestTest

Tags

None found

Methods

tearDown()

tearDown() 

Tear down the test environment.

Tags

None found

testMethodReturnsTheHTTPRequestMethod()

testMethodReturnsTheHTTPRequestMethod() 

Test the Request::method method.

Tags

group

laravel

testServerMethodReturnsFromServerArray()

testServerMethodReturnsFromServerArray() 

Test the Request::server method.

Tags

group

laravel

testIPMethodReturnsClientIPAddress()

testIPMethodReturnsClientIPAddress() 

Test the Request::ip method.

Tags

group

laravel

testSecureMethodsIndicatesIfHTTPS()

testSecureMethodsIndicatesIfHTTPS() 

Test the Request::secure method.

Tags

group

laravel

testAjaxMethodIndicatesWhenAjax()

testAjaxMethodIndicatesWhenAjax() 

Test the Request::ajax method.

Tags

group

laravel

testForgedMethodIndicatesIfRequestWasForged()

testForgedMethodIndicatesIfRequestWasForged() 

Test the Request::forged method.

Tags

group

laravel

testRouteMethodReturnsStaticRoute()

testRouteMethodReturnsStaticRoute() 

Test the Request::route method.

Tags

group

laravel

setServerVar()

setServerVar(string  $key, string  $value) 

Set one of the $_SERVER variables.

Parameters

string $key
string $value

Tags

None found

setPostVar()

setPostVar(string  $key, string  $value) 

Set one of the $_POST variables.

Parameters

string $key
string $value

Tags

None found

restartRequest()

restartRequest() : void

Reinitialize the global request.

Tags

None found