FakeServerConf

base class for servers

package

jelix

Methods

__construct

__construct(string $documentRoot = null, string $scriptName = null) 

Arguments

$documentRoot

string

the path of the document root of the site

$scriptName

string

the PHP script name: path in the url from the domain name to the script itself

setDefaultServer

setDefaultServer() 

setHttpRequest

setHttpRequest(string $url, string $method = 'get', string|array $body = '',  $bodyContentType = 'application/x-www-form-urlencoded') 

Arguments

$url

string

$method

string

the http method (get, post...)

$body

string|array

the content of the request for http method that need it it can be an array

$bodyContentType

Properties

full path to the document root

documentRoot : 

Type(s)

part of the path from the document root path to the physical php script

scriptName : 

Type(s)