ApacheMod

Extends \jelix\FakeServerConf\FakeServerConf

simulate a server configured with apache + mod_php

package

jelix

Methods

__construct

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

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() 
inherited

setHttpRequest

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

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 : 
inherited

Type(s)

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

scriptName : 
inherited

Type(s)