Moodle  2.2.1
http://www.collinsharper.com
SimpleTest Namespace Reference

Detailed Description

Base include file for SimpleTest

WebTester

Version:
Id:
authentication.php,v 1.4 2010/12/14 17:35:45 moodlerobot Exp

include http class Represents a single security realm's identity.

WebTester

Manages security realms.

WebTester

Autorunner which runs all tests cases found in a file that includes this module.

Version:
$Id$

Base include file for SimpleTest

WebTester

Version:
Id:
browser.php,v 1.5 2010/12/14 17:35:45 moodlerobot Exp

#@+ include other SimpleTest class files#@- Browser history list.

WebTester

Simulated web browser. This is an aggregate of the user agent, the HTML parsing, request history and the last header set.

WebTester

This file contains the following classes: SimpleCollector, SimplePatternCollector.

Author:
Travis Swicegood <development@domain51.com>

UnitTester

Version:
Id:
collector.php,v 1.4 2010/12/14 17:35:45 moodlerobot Exp

The basic collector for GroupTest

See also:
collect(), GroupTest::collect()

UnitTester

An extension to SimpleCollector that only adds files matching a given pattern.

UnitTester

See also:
SimpleCollector

base include file for SimpleTest

Version:
Id:
compatibility.php,v 1.4 2010/12/14 17:35:45 moodlerobot Exp

Static methods for compatibility between different PHP versions.

Base include file for SimpleTest

WebTester

Version:
Id:
cookies.php,v 1.4 2010/12/14 17:35:44 moodlerobot Exp

#@+ include other SimpleTest class files#@- Cookie data holder. Cookie rules are full of pretty arbitary stuff. I have used... http://wp.netscape.com/newsref/std/cookie_spec.html http://www.cookiecentral.com/faq/

WebTester

Repository for cookies. This stuff is a tiny bit browser dependent.

WebTester

Optional include file for SimpleTest

UnitTester

Version:
$Id$

#@+ include other SimpleTest class files#@- Parser for command line arguments. Extracts the a specific test to run and engages XML reporting when necessary.

UnitTester

The default reporter used by SimpleTest's autorun feature. The actual reporters used are dependency injected and can be overridden.

UnitTester

base include file for SimpleTest

UnitTester

Version:
Id:
detached.php,v 1.5 2010/12/14 17:35:45 moodlerobot Exp

#@+ include other SimpleTest class files#@- Runs an XML formated test in a separate process.

UnitTester

base include file for SimpleTest

UnitTester

Version:
Id:
dumper.php,v 1.4 2010/12/14 17:35:45 moodlerobot Exp

does type matter Displays variables as text and does diffs.

UnitTester

base include file for eclipse plugin

Eclipse

Version:
Id:
eclipse.php,v 1.4 2010/12/14 17:35:44 moodlerobot Exp

#@+ simpletest include files#@- base reported class for eclipse plugin

Eclipse

Invoker decorator for Eclipse. Captures output until the end of the test.

Eclipse

base include file for SimpleTest

WebTester

Version:
Id:
encoding.php,v 1.4 2010/12/14 17:35:45 moodlerobot Exp

#@+ include other SimpleTest class files#@- Single post parameter.

WebTester

Single post parameter.

WebTester

Bundle of GET/POST parameters. Can include repeated parameters.

WebTester

Bundle of GET parameters. Can include repeated parameters.

WebTester

Bundle of URL parameters for a HEAD request.

WebTester

Bundle of POST parameters. Can include repeated parameters.

WebTester

Bundle of POST parameters in the multipart format. Can include file uploads.

WebTester

base include file for SimpleTest

UnitTester

Version:
Id:
errors.php,v 1.6 2010/12/14 17:35:45 moodlerobot Exp

#@- Extension that traps errors into an error queue.

UnitTester

Error queue used to record trapped errors.

UnitTester

base include file for SimpleTest

UnitTester

Version:
Id:
exceptions.php,v 1.4 2010/12/14 17:35:46 moodlerobot Exp

#@+ Include required SimpleTest files #@- Extension that traps exceptions and turns them into an error message. PHP5 only.

UnitTester

Tests exceptions either by type or the exact exception. This could be improved to accept a pattern expectation to test the error message, but that will have to come later.

UnitTester

Stores expected exceptions for when they get thrown. Saves the irritating try...catch block.

UnitTester

base include file for SimpleTest

UnitTester

Version:
Id:
expectation.php,v 1.5 2010/12/14 17:35:45 moodlerobot Exp

#@+ include other SimpleTest class files#@- Assertion that can display failure information. Also includes various helper methods.

UnitTester

A wildcard expectation always matches.

MockObjects

An expectation that never matches.

MockObjects

An expectation that passes on boolean true.

MockObjects

An expectation that passes on boolean false.

MockObjects

Test for equality.

UnitTester

Test for inequality.

UnitTester

Test for being within a range.

UnitTester

Test for being outside of a range.

UnitTester

Test for reference.

UnitTester

Test for identity.

UnitTester

Test for non-identity.

UnitTester

Test for a pattern using Perl regex rules.

UnitTester

UnitTester

Deprecated:

Fail if a pattern is detected within the comparison.

UnitTester

UnitTester

Deprecated:

Tests either type or class name if it's an object.

UnitTester

Tests either type or class name if it's an object. Will succeed if the type does not match.

UnitTester

Tests for existance of a method in an object

UnitTester

adapter for SimpleTest to use PEAR PHPUnit test cases

Extensions

Version:
Id:
pear_test_case.php,v 1.5 2010/12/14 17:36:02 moodlerobot Exp

#@+ include SimpleTest files#@- Adapter for PEAR PHPUnit test case to allow legacy PEAR test cases to be used with SimpleTest.

Extensions

adapter for SimpleTest to use PHPUnit test cases

Extensions

Version:
Id:
phpunit_test_case.php,v 1.4 2010/12/14 17:36:02 moodlerobot Exp

#@+ include SimpleTest files#@- Adapter for sourceforge PHPUnit test case to allow legacy test cases to be used with SimpleTest.

Extensions

Base include file for SimpleTest.

WebTester

Version:
Id:
form.php,v 1.5 2010/12/14 17:35:44 moodlerobot Exp

#@+ include SimpleTest files#@- Form tag class to hold widget values.

WebTester

Base include file for SimpleTest

WebTester

Version:
Id:
frames.php,v 1.4 2010/12/14 17:35:44 moodlerobot Exp

#@+ include other SimpleTest class files#@- A composite page. Wraps a frameset page and adds subframes. The original page will be mostly ignored. Implements the SimplePage interface so as to be interchangeable.

WebTester

base include file for SimpleTest

WebTester

Version:
Id:
http.php,v 1.6 2010/12/14 17:35:46 moodlerobot Exp

#@+ include other SimpleTest class files#@- Creates HTTP headers for the end point of a HTTP request.

WebTester

Creates HTTP headers for the end point of a HTTP request via a proxy server.

WebTester

HTTP request for a web page. Factory for HttpResponse object.

WebTester

Collection of header lines in the response.

WebTester

Basic HTTP response.

WebTester

Base include file for SimpleTest

UnitTester

Version:
Id:
invoker.php,v 1.5 2010/12/14 17:35:45 moodlerobot Exp

#@+ Includes SimpleTest files and defined the root constant for dependent libraries.#@- This is called by the class runner to run a single test method. Will also run the setUp() and tearDown() methods.

UnitTester

Do nothing decorator. Just passes the invocation straight through.

UnitTester

base include file for SimpleTest

MockObjects

Version:
Id:
mock_objects.php,v 1.6 2010/12/14 17:35:45 moodlerobot Exp

Base include file for SimpleTest

WebTester

Version:
Id:
page.php,v 1.5 2010/12/14 17:35:44 moodlerobot Exp

#@+ include other SimpleTest class files#@- Creates tags and widgets given HTML tag attributes.

WebTester

SAX event handler. Maintains a list of open tags and dispatches them as they close.

WebTester

A wrapper for a web page.

WebTester

base include file for SimpleTest

MockObjects

Version:
Id:
parser.php,v 1.5 2010/12/14 17:35:45 moodlerobot Exp

#@+ Lexer mode stack constants#@- Compounded regular expression. Any of the contained patterns could match and when one does, it's label is returned.

WebTester

States for a stack machine.

WebTester

Accepts text and breaks it into tokens. Some optimisation to make the sure the content is only scanned by the PHP regex parser once. Lexer modes must not start with leading underscores.

WebTester

Breaks HTML into SAX events.

WebTester

Converts HTML tokens into selected SAX events.

WebTester

SAX event handler.

WebTester

base include file for SimpleTest

UnitTester

Version:
Id:
reflection_php4.php,v 1.4 2010/12/14 17:35:44 moodlerobot Exp

Version specific reflection API.

UnitTester duplicate with reflection_php5.php

base include file for SimpleTest

UnitTester

Version:
Id:
reflection_php5.php,v 1.4 2010/12/14 17:35:46 moodlerobot Exp

Version specific reflection API.

UnitTester

base include file for SimpleTest

UnitTester

Version:
Id:
remote.php,v 1.5 2010/12/14 17:35:45 moodlerobot Exp

#@+ include other SimpleTest class files#@- Runs an XML formated test on a remote server.

UnitTester

base include file for SimpleTest

UnitTester

Version:
Id:
reporter.php,v 1.4 2010/12/14 17:35:46 moodlerobot Exp

#@+ include other SimpleTest class files#@- Sample minimal test displayer. Generates only failure messages and a pass count.

UnitTester

Sample minimal test displayer. Generates only failure messages and a pass count. For command line use. I've tried to make it look like JUnit, but I wanted to output the errors as they arrived which meant dropping the dots.

UnitTester

Runs just a single test group, a single case or even a single test within that case.

UnitTester

Suppresses skip messages.

UnitTester

base include file for SimpleTest

UnitTester

Version:
Id:
scorer.php,v 1.4 2010/12/14 17:35:44 moodlerobot Exp

#@+ #@- Can receive test events and display them. Display is achieved by making display methods available and visiting the incoming event.

UnitTester

Recipient of generated test messages that can display page footers and headers. Also keeps track of the test nesting. This is the main base class on which to build the finished test (page based) displays.

UnitTester

For modifying the behaviour of the visual reporters.

UnitTester

For sending messages to multiple reporters at the same time.

UnitTester

Base include file for SimpleTest.

WebTester

Version:
Id:
selector.php,v 1.4 2010/12/14 17:35:44 moodlerobot Exp

#@+ include SimpleTest files#@- Used to extract form elements for testing against. Searches by name attribute.

WebTester

Used to extract form elements for testing against. Searches by visible label or alt text.

WebTester

Used to extract form elements for testing against. Searches dy id attribute.

WebTester

Used to extract form elements for testing against. Searches by visible label, name or alt text.

WebTester

base include file for SimpleTest

UnitTester

Version:
Id:
shell_tester.php,v 1.5 2010/12/14 17:35:45 moodlerobot Exp

#@+ include other SimpleTest class files#@- Wrapper for exec() functionality.

UnitTester

Test case for testing of command line scripts and utilities. Usually scripts that are external to the PHP code, but support it in some way.

UnitTester

Global state for SimpleTest and kicker script in future versions.

UnitTester

Version:
Id:
simpletest.php,v 1.6 2010/12/14 17:35:45 moodlerobot Exp

#@+ include SimpleTest files#@- Registry and test context. Includes a few global options that I'm slowly getting rid of.

UnitTester

Container for all components for a specific test run. Makes things like error queues available to PHP event handlers, and also gets around some nasty reference issues in the mocks.

Interrogates the stack trace to recover the failure point.

UnitTester

UnitTester

Deprecated:

base include file for SimpleTest

MockObjects

Version:
Id:
socket.php,v 1.4 2010/12/14 17:35:45 moodlerobot Exp

#@+ include SimpleTest files#@- Stashes an error for later. Useful for constructors until PHP gets exceptions.

WebTester

Wrapper for TCP/IP socket.

WebTester

Wrapper for TCP/IP socket over TLS.

WebTester

Base include file for SimpleTest.

WebTester

Version:
Id:
tag.php,v 1.4 2010/12/14 17:35:46 moodlerobot Exp

#@+ include SimpleTest files#@- HTML or XML tag.

WebTester

Base url.

WebTester

Page title.

WebTester

Link.

WebTester

Form element.

WebTester

Text, password and hidden field.

WebTester

Submit button as input tag.

WebTester

Image button as input tag.

WebTester

Submit button as button tag.

WebTester

Content tag for text area.

WebTester

File upload widget.

WebTester

Drop down widget.

WebTester

Option for selection field.

WebTester

Radio button.

WebTester

Checkbox widget.

WebTester

A group of multiple widgets with some shared behaviour.

WebTester

A group of tags with the same name within a form.

WebTester

A group of tags with the same name within a form. Used for radio buttons.

WebTester

Tag to keep track of labels.

WebTester

Tag to aid parsing the form.

WebTester

Tag to aid parsing the frames in a page.

WebTester

Base include file for SimpleTest

UnitTester

Version:
Id:
test_case.php,v 1.16 2010/12/14 17:35:45 moodlerobot Exp

Base include file for SimpleTest

UnitTester

Version:
Id:
colortext_reporter.php,v 1.2 2010/12/14 17:35:48 moodlerobot Exp

include base reporter Provides an ANSI-colored TextReporter for viewing test results.

This code is made available under the same terms as SimpleTest. It is based off of code that Jason Sweat originally published on the SimpleTest mailing list.

Author:
Jason Sweat (original code)
Travis Swicegood <development@domain51.com>

UnitTester

base include file for SimpleTest PUnit reporter

UnitTester

Version:
Id:
webunit_reporter.php,v 1.2 2010/12/14 17:35:48 moodlerobot Exp

Sample minimal test displayer. Generates only failure messages and a pass count.

UnitTester

base include file for SimpleTest

UnitTester

Version:
Id:
unit_tester.php,v 1.5 2010/12/14 17:35:45 moodlerobot Exp

#@+ include other SimpleTest class files#@- Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions.

UnitTester

base include file for SimpleTest

WebTester

Version:
Id:
url.php,v 1.6 2010/12/14 17:35:45 moodlerobot Exp

#@+ include other SimpleTest class files#@- URL parser to replace parse_url() PHP function which got broken in PHP 4.3.0. Adds some browser specific functionality such as expandomatics. Guesses a bit trying to separate the host from the path and tries to keep a raw, possibly unparsable, request string as long as possible.

WebTester

Base include file for SimpleTest

WebTester

Version:
Id:
user_agent.php,v 1.5 2010/12/14 17:35:45 moodlerobot Exp

#@+ include other SimpleTest class files#@- Fetches web pages whilst keeping track of cookies and authentication.

WebTester

Base include file for SimpleTest.

WebTester

Version:
Id:
web_tester.php,v 1.6 2010/12/14 17:35:44 moodlerobot Exp

#@+ include other SimpleTest class files#@- Test for an HTML widget value match.

WebTester

Test for a specific HTTP header within a header block.

WebTester

Test for a specific HTTP header within a header block that should not be found.

WebTester

Test for a text substring.

UnitTester

Fail if a substring is detected within the comparison text.

UnitTester

Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms.

WebTester

base include file for SimpleTest

UnitTester

Version:
Id:
xml.php,v 1.4 2010/12/14 17:35:45 moodlerobot Exp

#@+ include other SimpleTest class files#@- Creates the XML needed for remote communication by SimpleTest.

UnitTester

Accumulator for incoming tag. Holds the incoming test structure information for later dispatch to the reporter.

UnitTester

Accumulator for incoming method tag. Holds the incoming test structure information for later dispatch to the reporter.

UnitTester

Accumulator for incoming case tag. Holds the incoming test structure information for later dispatch to the reporter.

UnitTester

Accumulator for incoming group tag. Holds the incoming test structure information for later dispatch to the reporter.

UnitTester

Parser for importing the output of the XmlReporter. Dispatches that output to another reporter.

UnitTester

 All Data Structures Namespaces Files Functions Variables Enumerations