PHP Class 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'))
Author: Jan Kaštánek
Inheritance: extends Jyxo\Beholder\TestCase
Datei anzeigen Open project: jyxo/php

Public Methods

Method Description
__construct ( string $description, string $url, array $tests = [] ) Constructor. Gets the testing URL and optional custom tests.
run ( ) : Result Performs the test.

Method Details

__construct() public method

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() public method

Performs the test.
public run ( ) : Result
return Jyxo\Beholder\Result