PHP Класс Jyxo\Beholder\TestCase\HttpResponse

Checks only availability in the default form, but can be easily extended with additional checks. Example: new \Jyxo\Beholder\TestCase\HttpResponse('Foo', 'http://example.com/', array('body' => '/this text must be in body/m'))
Автор: Jan Kaštánek
Наследование: extends Jyxo\Beholder\TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $description, string $url, array $tests = [] ) Constructor. Gets the testing URL and optional custom tests.
run ( ) : Result Performs the test.

Описание методов

__construct() публичный Метод

Constructor. Gets the testing URL and optional custom tests.
public __construct ( string $description, string $url, array $tests = [] )
$description string Test description
$url string Tested URL
$tests array Custom tests

run() публичный Метод

Performs the test.
public run ( ) : Result
Результат Jyxo\Beholder\Result