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

  • Executor
  • Result
  • TestCase
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated

Class Executor

Beholder test executor.

Includes filtering and HTML output formatting.

Tests are performed in random order but results are outputted in alphabetical order with the order they were performed.

Example:

$beholder = new \Jyxo\Beholder\Executor('Project', $_GET);
$beholder->addTest('T1', new \Project\Beholder\Test1('Test 1'));
$beholder->addTest('T2', new \Project\Beholder\Test2('Test 2'));
$beholder->addTest('T3', new \Project\Beholder\Test3Blah('Test 3 Blah'));
$beholder->run();
Namespace: Jyxo\Beholder
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 Matoušek
Author: Jaroslav Hanslík
Located at Beholder/Executor.php
Methods summary
public
# __construct( string $project, array $params = array() )

Constructor.

Constructor.

Parameters

$project
string
Project name
$params
array
Parameters; possible parameters are: include, exclude, output
public boolean
# run( )

Performs chosen tests and outputs results according to the selected output type.

Performs chosen tests and outputs results according to the selected output type.

Returns

boolean
Returns if all tests were successful
public Jyxo\Beholder\Executor
# addTest( string $ident, Jyxo\Beholder\TestCase $test )

Adds a test.

Adds a test.

Parameters

$ident
string
Tests identifier
$test
Jyxo\Beholder\TestCase
Test instance

Returns

Jyxo\Beholder\Executor
Constants summary
string OUTPUT_TEXT 't'
#

Plaintext output.

Plaintext output.

string OUTPUT_HTML 'h'
#

HTML output.

HTML output.

string PARAM_OUTPUT 'o'
#

Output parameter.

Output parameter.

string PARAM_INCLUDE 't'
#

Parameter for including tests.

Parameter for including tests.

string PARAM_EXCLUDE 'nt'
#

Parameter for excluding tests.

Parameter for excluding tests.

Jyxo PHP Library API documentation generated by ApiGen 2.3.0