Overview

Namespaces

  • Jyxo
    • Beholder
      • TestCase
    • Gettext
      • Parser
    • Input
      • Chain
      • Filter
      • Validator
    • Mail
      • Email
        • Attachment
      • Parser
      • Sender
    • Rpc
      • Json
      • Xml
    • Shell
    • Spl
    • Svn
    • Time
    • Webdav
  • PHP

Classes

  • FileSystem
  • HttpResponse
  • Imap
  • JsonRpc
  • Memcached
  • Mysql
  • Pgsql
  • PhpExtension
  • PhpVersion
  • PhpZend
  • Smtp
  • Webdav
  • XmlRpc
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated

Class HttpResponse

Common HTTP response test. 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'))
Jyxo\Beholder\TestCase
Extended by Jyxo\Beholder\TestCase\HttpResponse
Namespace: Jyxo\Beholder\TestCase
Category: Jyxo
Package: Jyxo\Beholder
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Jan Kaštánek
Located at Beholder/TestCase/HttpResponse.php
Methods summary
public
# __construct( string $description, string $url, array $tests = array() )

Constructor. Gets the testing URL and optional custom tests.

Constructor. Gets the testing URL and optional custom tests.

Parameters

$description
string
Test description
$url
string
Tested URL
$tests
array
Custom tests
public Jyxo\Beholder\Result
# run( )

Performs the test.

Performs the test.

Returns

Jyxo\Beholder\Result
Methods inherited from Jyxo\Beholder\TestCase
getDescription()
Jyxo PHP Library API documentation generated by ApiGen 2.3.0