Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Prose
ExpectsHttpResponse
PHP Class Prose\ExpectsHttpResponse
great for testing APIs
See link:
http://datasift.github.io/storyplayer
Author:
Stuart Herbert (
[email protected]
)
Inheritance:
extends
Prose
Exibir arquivo
Open project: datasift/storyplayer
Public Methods
Method
Description
__construct
(
StoryTeller
$st
,
$params
)
DO NOT TYPEHINT $response!!
hasBody
(
$expectedBody
)
hasStatusCode
(
$status
)
Method Details
__construct()
public
method
Although it is extra work for us, if we use typehinting here, then we get a failure in the PHP engine (which is harder to handle). It's currently considered to be better if we detect the error ourselves.
public
__construct
(
StoryTeller
$st
,
$params
)
$st
DataSift\Storyplayer\PlayerLib\StoryTeller
[description]
hasBody()
public
method
public
hasBody
(
$expectedBody
)
hasStatusCode()
public
method
public
hasStatusCode
(
$status
)