[SimpleTest] element index

Package indexes

All elements
$ a b c d e f g h i l m n o p r s t u w x _
$
top
$constant
$constant in parser.php
Lexer mode stack constants
_
top
$_loosely_typed
PHPUnit_TestCase::$_loosely_typed in pear_test_case.php
$_actions
SimpleMock::$_actions in mock_objects.php
$_always
SimpleCallSchedule::$_always in mock_objects.php
$_at
SimpleCallSchedule::$_at in mock_objects.php
$_call_counts
SimpleMock::$_call_counts in mock_objects.php
$_class
MockGenerator::$_class in mock_objects.php
$_count
CallCountExpectation::$_count in mock_objects.php
$_count
$_count
$_error
SimpleErrorThrower::$_error in mock_objects.php
$_exception
SimpleThrower::$_exception in mock_objects.php
$_expected
$_expected_args
SimpleMock::$_expected_args in mock_objects.php
$_expected_args_at
SimpleMock::$_expected_args_at in mock_objects.php
$_expected_counts
SimpleMock::$_expected_counts in mock_objects.php
$_is_strict
SimpleMock::$_is_strict in mock_objects.php
$_map
SimpleSignatureMap::$_map in mock_objects.php
$_max_counts
SimpleMock::$_max_counts in mock_objects.php
$_method
$_method
CallCountExpectation::$_method in mock_objects.php
$_method
$_mock_base
MockGenerator::$_mock_base in mock_objects.php
$_mock_class
MockGenerator::$_mock_class in mock_objects.php
$_reference
SimpleByReference::$_reference in mock_objects.php
$_reflection
MockGenerator::$_reflection in mock_objects.php
$_severity
SimpleErrorThrower::$_severity in mock_objects.php
$_value
SimpleByValue::$_value in mock_objects.php
$_wildcard
SimpleCallSchedule::$_wildcard in mock_objects.php
$_wildcard
SimpleMock::$_wildcard in mock_objects.php
_addCall
SimpleMock::_addCall() in mock_objects.php
Adds one to the call count of a method.
_dieOnNoMethod
SimpleMock::_dieOnNoMethod() in mock_objects.php
Triggers a PHP error if the method is not part of this object.
_emulateCall
SimpleMock::_emulateCall() in mock_objects.php
Finds the return value matching the incoming arguments. If there is no matching value found then an error is triggered.
_getCurrentTestCase
Finds currently running test.
$_attributes
$_attributes
$_case
SimpleCommandLineParser::$_case in default_reporter.php
$_character_set
$_command
$_content
$_current_shell
ShellTestCase::$_current_shell in shell_tester.php
$_dry_command
$_dry_url
$_dumper
SimpleExpectation::$_dumper in expectation.php
$_error
BadTestSuite::$_error in test_case.php
$_exceptions
$_expat
$_expectation_queue
$_fails
SimpleScorer::$_fails in scorer.php
$_indent
$_interface
SimpleReflection::$_interface in reflection_php5.php
$_invoker
$_in_content_tag
$_is_dry_run
$_just_this_case
$_just_this_test
$_label
SimpleTestCase::$_label in test_case.php
$_label
TestSuite::$_label in test_case.php
$_label
BadTestSuite::$_label in test_case.php
$_last_command
ShellTestCase::$_last_command in shell_tester.php
$_last_status
ShellTestCase::$_last_status in shell_tester.php
$_listener
$_lower
$_message
SimpleExpectation::$_message in expectation.php
$_method
$_name
$_namespace
$_no_skips
SimpleCommandLineParser::$_no_skips in default_reporter.php
$_observers
$_on
SelectiveReporter::$_on in reporter.php
$_output
SimpleShell::$_output in shell_tester.php
$_passes
$_pattern
$_pattern
$_prefixes
$_progress
$_queue
$_reporter
$_reporter
$_reporter
$_reporters
$_resources
$_should_skip
$_size
$_size
DetachedTestCase::$_size in detached.php
$_size
$_substring
$_tag_stack
$_test
SimpleTestContext::$_test in simpletest.php
$_test
SimpleCommandLineParser::$_test in default_reporter.php
$_test
$_test_case
$_test_cases
TestSuite::$_test_cases in test_case.php
$_test_case_pattern
$_test_stack
$_to_property
$_type
NotAExpectation::$_type in expectation.php
$_type
IsAExpectation::$_type in expectation.php
$_upper
$_url
RemoteTestCase::$_url in remote.php
$_using_expect_style
$_value
$_value
EqualExpectation::$_value in expectation.php
$_xml
SimpleCommandLineParser::$_xml in default_reporter.php
_addContent
Content between start and end elements.
_createBrowser
Creates a new web browser object for fetching the XML report.
_createParser
Sets up expat as the XML parser.
_createParser
Creates the XML parser.
_createParser
Creates the XML parser.
_createShell
ShellTestCase::_createShell() in shell_tester.php
Factory for the shell to run the command on.
_default
XML and Doctype handler. Discards all such content.
_describePatternMatch
Describes a pattern match including the string found and it's position.
_describeTextMatch
Describes a pattern match including the string found and it's position.
_endElement
End of element event.
_getAttributes
Accessor for attributes.
_getCss
HtmlReporter::_getCss() in reporter.php
Paints the CSS. Add additional styles here.
_getDumper
Accessor for the dumper.
_getIndent
Calculates the pretty printing indent level from the current level of nesting.
_getPattern
Accessor for the pattern.
_getShell
ShellTestCase::_getShell() in shell_tester.php
Accessor for current shell. Used for testing the the tester itself.
_getSubstring
Accessor for the substring.
_getType
IsAExpectation::_getType() in expectation.php
Accessor for type to check against.
_getValue
Accessor for comparison value.
_getValue
_handle
This method determines what should be done with a given file and adds it via GroupTest::addTestFile() if necessary.
_handle
Attempts to add files that match a given pattern.
_htmlEntities
Character set adjusted entity conversion.
_isLeaf
Test if tag is a leaf node with only text content.
_isTest
SimpleTestCase::_isTest() in test_case.php
Tests to see if the method is a test that should be run. Currently any method that starts with 'test' is a candidate unless it is the constructor.
_matchesTestCase
Compares criteria to actual the case/group name.
_removeTrailingSlash
Strips off any kind of slash at the end so as to normalise the path.
_shouldRunTest
Compares criteria to actual the test name. If no name was specified at the beginning, then all tests can run.
_startElement
Handler for start of event element.
__construct
Sets up the conditions to test against.
__construct
Clears down the queue ready for action.
$_action
$_additional_headers
$_attributes
$_attributes
$_authentication
$_authenticator
$_base
SimplePage::$_base in page.php
$_boundary
$_browser
WebTestCase::$_browser in web_tester.php
$_buttons
$_case
ParallelRegex::$_case in parser.php
$_case
SimpleLexer::$_case in parser.php
$_checkboxes
$_choice
$_complete_forms
$_connection_timeout
$_content
$_content
$_content
$_cookies
$_cookies
$_cookies
$_cookies_enabled
$_cookie_jar
$_current_attribute
$_default_target
$_encoding
$_encoding
$_encoding
$_error
$_expected_header
$_expected_header
$_expected_value
$_expected_value
$_expiry
SimpleCookie::$_expiry in cookies.php
$_filename
$_focus
$_fragment
$_frames
$_frames
$_frameset
$_frameset
$_frameset_nesting_level
$_handle
$_headers
$_headers
$_headers
$_history
$_host
SimpleCookie::$_host in cookies.php
$_host
$_http_version
$_id
SimpleForm::$_id in form.php
$_id
SimpleById::$_id in selector.php
$_ignore_errors
$_ignore_frames
$_images
$_is_open
$_is_secure
$_is_set
$_key
SimpleEncodedPair::$_key in encoding.php
$_key
SimpleAttachment::$_key in encoding.php
$_label
SimpleByLabel::$_label in selector.php
$_label
$_label
$_label
$_labels
$_last_widget
$_left_over_labels
$_lexer
$_links
$_listener
$_location
$_maximum_nested_frames
$_max_redirects
$_method
$_method
$_mime_type
$_mode
SimpleLexer::$_mode in parser.php
$_mode_handlers
$_name
$_name
SimpleByName::$_name in selector.php
$_name
SimpleCookie::$_name in cookies.php
$_names
$_open_forms
$_options
$_options
$_page
$_page
SimpleBrowser::$_page in browser.php
$_parser
SimpleLexer::$_parser in parser.php
$_password
$_password
$_password
SimpleRealm::$_password in authentication.php
$_path
SimpleCookie::$_path in cookies.php
$_path
$_patterns
$_port
$_position
$_private_content_tag
$_proxy
SimpleUserAgent::$_proxy in user_agent.php
$_proxy
$_proxy_password
$_proxy_username
$_radios
$_raw
SimplePage::$_raw in page.php
$_raw
SimpleUrl::$_raw in url.php
$_raw_headers
$_realm
$_realms
SimpleAuthenticator::$_realms in authentication.php
$_regex
$_regexes
$_request
$_request
$_request_data
$_response_code
$_root
SimpleRealm::$_root in authentication.php
$_route
$_scheme
$_sent
SimplePage::$_sent in page.php
$_sent
SimpleSocket::$_sent in socket.php
$_sent
$_sequence
$_stack
$_tag
$_tags
$_target
$_text
SimplePage::$_text in page.php
$_title
$_transport_error
$_type
SimpleRealm::$_type in authentication.php
$_url
SimpleRoute::$_url in http.php
$_url
$_url
SimplePage::$_url in page.php
$_username
SimpleRealm::$_username in authentication.php
$_username
$_username
$_user_agent
$_value
FieldExpectation::$_value in web_tester.php
$_value
$_value
$_value
SimpleCookie::$_value in cookies.php
$_values
$_widgets
$_widgets
$_x
SimpleUrl::$_x in url.php
$_y
SimpleUrl::$_y in url.php
_addLink
Adds a link to the page.
_assertFieldValue
Tests the field value against the expectation.
_buildPage
Assembles the parsing machinery and actually parses a single page. Frees all of the builder memory and so unjams the PHP memory management.
_clearError
Resets the error state to no error.
_createAction
Combined action attribute with current location to get an absolute form target.
_createHistory
Creates a new empty history list.
_createHttpRequest
Builds the appropriate HTTP request object.
_createInputTag
Factory for input tags.
_createPage
Creates an empty page.
_createParser
Creates the parser used with the builder.
_createResponse
Wraps the socket in a response parser.
_createRoute
Sets up either a direct route or via a proxy.
_createSelectionTag
Factory for selection fields.
_createSocket
Factory for socket.
_createUserAgent
Creates the underlying user agent.
_encode
Renders the query string as a URL encoded request part.
_encode
Renders the query string as a URL encoded request part.
_fetch
SimpleUserAgent::_fetch() in user_agent.php
Actually make the web request.
_findHeader
Searches the incoming result. Will extract the matching line as text.
_getExpectation
Accessor for aggregated object.
_getHostLine
Creates the host part of the request.
_getHostLine
Creates the host part of the request.
_getRequestLine
Creates the first line which is the actual request.
_getRequestLine
Creates the first line which is the actual request.
_getWidgets
Accessor to widget set.
_linkIsAbsolute
Test to see if link is an absolute one.
_openSocket
Actually opens the low level socket.
_openSocket
Actually opens the low level socket.
_parseHeaderLine
Called on each header line to accumulate the held data within the class.
_setAttribute
Sets an attribute.
_setBase
Sets the base url for the page.
_setError
Sets the internal error.
_setTitle
Sets the title tag contents.
_testHeaderValue
Tests the value part of the header.
a
top
after
Stops output buffering and send the captured output to the listener.
assert
TestCase::assert() in phpunit_test_case.php
Sends pass if the test condition resolves true, a fail otherwise.
assertEquals
TestCase::assertEquals() in phpunit_test_case.php
Will test straight equality if set to loose typing, or identity if not.
assertEquals
PHPUnit_TestCase::assertEquals() in pear_test_case.php
Will test straight equality if set to loose typing, or identity if not.
assertEqualsMultilineStrings
Simple string equality.
assertFalse
PHPUnit_TestCase::assertFalse() in pear_test_case.php
Sends pass if the test condition resolves false, a fail otherwise.
assertNotNull
PHPUnit_TestCase::assertNotNull() in pear_test_case.php
Passes if the value tested is not null.
assertNotSame
PHPUnit_TestCase::assertNotSame() in pear_test_case.php
In PHP5 the identity test tests for the same object. This is a reference test in PHP4.
assertNull
PHPUnit_TestCase::assertNull() in pear_test_case.php
Passes if the value tested is null.
assertRegExp
PHPUnit_TestCase::assertRegExp() in pear_test_case.php
Tests a regex match. Needs refactoring.
assertRegexp
TestCase::assertRegexp() in phpunit_test_case.php
Tests a regex match.
assertSame
PHPUnit_TestCase::assertSame() in pear_test_case.php
In PHP5 the identity test tests for the same object. This is a reference test in PHP4.
assertTrue
PHPUnit_TestCase::assertTrue() in pear_test_case.php
Sends pass if the test condition resolves true, a fail otherwise.
assertType
PHPUnit_TestCase::assertType() in pear_test_case.php
Tests the type of a value.
act
SimpleThrower::act() in mock_objects.php
Throws the exceptins stashed earlier.
act
SimpleByValue::act() in mock_objects.php
Returns the value stored earlier.
act
SimpleErrorThrower::act() in mock_objects.php
Triggers the stashed error.
act
SimpleByReference::act() in mock_objects.php
Returns the reference stored earlier.
add
SimpleSignatureMap::add() in mock_objects.php
Stashes a reference against a method call.
AnythingExpectation
AnythingExpectation in expectation.php
A wildcard expectation always matches.
atTestEnd
SimpleMock::atTestEnd() in mock_objects.php
Receives event from unit test that the current test method has finished. Totals up the call counts and triggers a test assertion if a test is present for expected call counts.
add
TestSuite::add() in test_case.php
Adds a test into the suite by instance or class. The class will be instantiated if it's a test suite.
add
Adds an error to the front of the queue.
addFile
TestSuite::addFile() in test_case.php
Builds a test suite from a library of test cases.
addTestCase
TestSuite::addTestCase() in test_case.php
addTestClass
TestSuite::addTestClass() in test_case.php
addTestFile
TestSuite::addTestFile() in test_case.php
after
SimpleInvoker::after() in invoker.php
Runs test level clean up. Used for changing the mechanics of base test cases.
after
Runs test level clean up. Used for changing the mechanics of base test cases.
after
SimpleTestCase::after() in test_case.php
Announces the end of the test. Includes private clean up.
assert
SimpleTestCase::assert() in test_case.php
Runs an expectation directly, for extending the tests with new expectation classes.
assertClone
UnitTestCase::assertClone() in unit_tester.php
Will trigger a pass if both parameters refer to different objects. Fail otherwise. The objects have to be identical though.
assertCopy
UnitTestCase::assertCopy() in unit_tester.php
assertEqual
ShellTestCase::assertEqual() in shell_tester.php
Will trigger a pass if the two parameters have the same value only. Otherwise a fail. This is for testing hand extracted text, etc.
assertEqual
UnitTestCase::assertEqual() in unit_tester.php
Will trigger a pass if the two parameters have the same value only. Otherwise a fail.
assertError
assertError
UnitTestCase::assertError() in unit_tester.php
assertErrorPattern
assertExitCode
Tests the last status code from the shell.
assertExpectation
assertFalse
ShellTestCase::assertFalse() in shell_tester.php
Will be true on false and vice versa. False is the PHP definition of false, so that null, empty strings, zero and an empty array all count as false.
assertFalse
UnitTestCase::assertFalse() in unit_tester.php
Will be true on false and vice versa. False is the PHP definition of false, so that null, empty strings, zero and an empty array all count as false.
assertFileExists
File existence check.
assertFileNotExists
File non-existence check.
assertFilePattern
Scans a file for a Perl regex. If found anywhere it passes, else it fails.
assertIdentical
Will trigger a pass if the two parameters have the same value and same type. Otherwise a fail.
assertIsA
UnitTestCase::assertIsA() in unit_tester.php
Type and class test. Will pass if class matches the type name or is a subclass or if not an object, but the type is correct.
assertNoErrors
assertNoErrors
assertNoFilePattern
If a Perl regex is found anywhere in the named file then a failure is generated, else a pass.
assertNoOutputPattern
If a Perl regex is found anywhere in the current output then a failure is generated, else a pass.
assertNoPattern
Will trigger a pass if the perl regex pattern is not present in subject. Fail if found.
assertNotA
UnitTestCase::assertNotA() in unit_tester.php
Type and class mismatch test. Will pass if class name or underling type does not match the one specified.
assertNotEqual
Will trigger a pass if the two parameters have a different value. Otherwise a fail.
assertNotEqual
Will trigger a pass if the two parameters have a different value. Otherwise a fail. This is for testing hand extracted text, etc.
assertNotIdentical
Will trigger a pass if the two parameters have the different value or different type.
assertNotNull
Will be true if the value is set.
assertNoUnwantedPattern
assertNull
UnitTestCase::assertNull() in unit_tester.php
Will be true if the value is null.
assertOutput
ShellTestCase::assertOutput() in shell_tester.php
Attempt to exactly match the combined STDERR and STDOUT output.
assertOutputPattern
Scans the output for a Perl regex. If found anywhere it passes, else it fails.
assertOutsideMargin
Will trigger a pass if the two parameters differ by more than the margin.
assertPattern
Will trigger a pass if the Perl regex pattern is found in the subject. Fail otherwise.
assertReference
Will trigger a pass if both parameters refer to the same object. Fail otherwise.
assertTrue
ShellTestCase::assertTrue() in shell_tester.php
Called from within the test methods to register passes and failures.
assertTrue
UnitTestCase::assertTrue() in unit_tester.php
Called from within the test methods to register passes and failures.
assertWantedPattern
assertWithinMargin
Will trigger a pass if the if the first parameter is near enough to the second by the margin.
attachReporter
Adds a reporter to the subscriber list.
acceptAttributeToken
Part of the tag data.
acceptEndToken
Accepts a token from the end tag mode.
acceptEntityToken
A character entity.
acceptFormEnd
Closes the most recently opened form.
acceptFormStart
Opens a form. New widgets go here.
acceptFrame
Takes a single frame tag and stashes it in the current frame set.
acceptFramesetEnd
Closes the most recently opened frameset.
acceptFramesetStart
Opens a frameset. A frameset may contain nested frameset tags.
acceptLabelEnd
Closes the most recently opened label.
acceptLabelStart
Opens a label for a described widget.
acceptPageEnd
Marker for end of complete page. Any work in progress can now be closed.
acceptStartToken
Accepts a token from the tag mode. If the
acceptTag
Adds a tag to the page.
acceptTextToken
Character data between tags regarded as important.
add
SimpleEncoding::add() in encoding.php
Adds a parameter to the query.
addBasicHeaders
Presents the appropriate headers for this location for basic authentication.
addContent
Appends string content to the current content.
addContent
Unparsed, but relevant data. The data is added to every open tag.
addContent
Text within the selection element is ignored.
addContent
Text within the selection element is ignored.
addContent
Unparsed, but relevant data.
addEntryPattern
Adds a pattern that will enter a new parsing mode. Useful for entering parenthesis, strings, tags, etc.
addExitPattern
Adds a pattern that will exit the current mode and re-enter the previous one.
addFrame
Adds a parsed page to the frameset.
addHeader
Adds a header to every fetch.
addHeader
WebTestCase::addHeader() in web_tester.php
Adds a header to every fetch.
addHeader
Adds a header to every fetch.
addHeaderLine
Adds a header line to the request.
addHeaders
SimpleAuthenticator::addHeaders() in authentication.php
Presents the appropriate headers for this location.
addPattern
Adds a token search pattern for a particular parsing mode. The pattern does not change the current mode.
addPattern
Adds a pattern with an optional label.
addRealm
SimpleAuthenticator::addRealm() in authentication.php
Adds a new realm centered the current URL.
addRequestParameter
Adds an additional parameter to the request.
addRequestParameters
Adds additional parameters to the request.
addSpecialPattern
Adds a pattern that has a special mode. Acts as an entry and exit pattern in one go, effectively calling a special parser handler for this token only.
addTag
Adds an enclosed tag to the content.
addTag
Adds an option tag to a selection field.
addTag
Adds an option tag to a selection field.
addWidget
Adds a tag contents to the form.
addWidget
Adds a tag to the group.
after
WebTestCase::after() in web_tester.php
Announces the end of the test. Includes private clean up.
ageCookies
WebTestCase::ageCookies() in web_tester.php
Moves cookie expiry times back into the past.
ageCookies
Ages the cookies by the specified time.
ageCookies
Ages the cookies by the specified time.
agePrematurely
Ages all cookies in the cookie jar.
agePrematurely
Ages the cookie by the specified number of seconds.
asMime
The MIME part as a string.
asMime
The MIME part as a string.
asRequest
The pair as a single string.
asRequest
The pair as a single string.
assertAuthentication
Attempt to match the authentication type within the security realm we are currently matching.
assertClickable
Checks for a click target.
assertCookie
WebTestCase::assertCookie() in web_tester.php
Checks that a cookie is set for the current page and optionally checks the value.
assertEqual
WebTestCase::assertEqual() in web_tester.php
Will trigger a pass if the two parameters have the same value only. Otherwise a fail. This is for testing hand extracted text, etc.
assertFalse
WebTestCase::assertFalse() in web_tester.php
Will be true on false and vice versa. False is the PHP definition of false, so that null, empty strings, zero and an empty array all count as false.
assertField
WebTestCase::assertField() in web_tester.php
Confirms that the form element is currently set to the expected value. A missing form will always fail. If no value is given then only the existence of the field is checked.
assertFieldById
Confirms that the form element is currently set to the expected value. A missing form will always fail. If no ID is given then only the existence of the field is checked.
assertFieldByName
Confirms that the form element is currently set to the expected value. A missing form element will always fail. If no value is given then only the existence of the field is checked.
assertHeader
WebTestCase::assertHeader() in web_tester.php
Checks each header line for the required value. If no value is given then only an existence check is made.
assertHeaderPattern
assertImage
WebTestCase::assertImage() in web_tester.php
Checks for a valid image with atht alt text or title.
assertLink
WebTestCase::assertLink() in web_tester.php
Tests for the presence of a link label. Match is case insensitive with normalised space.
assertLinkById
Tests for the presence of a link id attribute.
assertMime
WebTestCase::assertMime() in web_tester.php
Checks the mime type against a list of possible values.
assertNoAuthentication
Checks that no authentication is necessary to view the desired page.
assertNoCookie
Checks that no cookie is present or that it has been successfully cleared.
assertNoHeader
Confirms that the header type has not been received.
assertNoLink
WebTestCase::assertNoLink() in web_tester.php
Tests for the non-presence of a link label. Match is case insensitive with normalised space.
assertNoLinkById
Tests for the non-presence of a link label. Match is case insensitive with normalised space.
assertNoPattern
Will trigger a pass if the perl regex pattern is not present in raw content.
assertNotEqual
Will trigger a pass if the two parameters have a different value. Otherwise a fail. This is for testing hand extracted text, etc.
assertNoText
WebTestCase::assertNoText() in web_tester.php
Will trigger a pass if the text is not found in the plain text form of the page.
assertNoUnwantedHeader
assertNoUnwantedPattern
assertNoUnwantedText
assertPattern
Will trigger a pass if the Perl regex pattern is found in the raw content.
assertRealm
WebTestCase::assertRealm() in web_tester.php
Attempts to match the current security realm.
assertResponse
Checks the response code against a list of possible values.
assertSubmit
WebTestCase::assertSubmit() in web_tester.php
Checks for a valid button label.
assertText
WebTestCase::assertText() in web_tester.php
Will trigger a pass if the text is found in the plain text form of the page.
assertTitle
WebTestCase::assertTitle() in web_tester.php
Tests the text between the title tags.
assertTrue
WebTestCase::assertTrue() in web_tester.php
Called from within the test methods to register passes and failures.
assertWantedPattern
assertWantedText
asString
Renders the URL back into a string.
asUrlRequest
Renders the query string as a URL encoded request part for attaching to a URL.
asUrlRequest
Renders the query string as a URL encoded request part for attaching to a URL.
attach
SimpleEncoding::attach() in encoding.php
Adds a MIME part to the query. Does nothing for a form encoded packet.
attachLabelBySelector
Used by the page object to set widgets labels to external label tags.
authenticate
WebTestCase::authenticate() in web_tester.php
Retries a request after setting the authentication for the current realm.
authenticate
Retries a request after setting the authentication for the current realm.
authentication.php
authentication.php in authentication.php
b
top
before
Starts output buffering.
BadGroupTest
BadGroupTest in test_case.php
BadTestSuite
Sets the name of the test suite and error message.
BadTestSuite
BadTestSuite in test_case.php
This is a failing group test for when a test suite hasn't loaded properly.
before
SimpleTestCase::before() in test_case.php
Announces the start of the test.
before
Runs test level set up. Used for changing the mechanics of base test cases.
before
Runs test level set up. Used for changing the mechanics of base test cases.
back
WebTestCase::back() in web_tester.php
Equivalent to hitting the back button on the browser.
back
Step back one place in the history. Stops at the first page.
back
SimpleBrowser::back() in browser.php
Equivalent to hitting the back button on the browser. The browser history is unchanged on failure. The page content is refetched as there is no concept of content caching in SimpleTest.
before
WebTestCase::before() in web_tester.php
Announces the start of the test.
browser.php
browser.php in browser.php
c
top
copy
SimpleTestCompatibility::copy() in compatibility.php
Creates a copy whether in PHP5 or PHP4.
compatibility.php
compatibility.php in compatibility.php
createInvoker
Wraps the test in an output buffer.
createListener
Localhost connection from Eclipse.
countTestCases
For progress indication during a test amongst other things.
CallCountExpectation
Stashes the method and expected count for later reporting.
CallCountExpectation
CallCountExpectation in mock_objects.php
Confirms that the number of calls on a method is as expected.
classExists
SimpleReflection::classExists() in reflection_php5.php
Checks that a class has been declared. Versions before PHP5.0.2 need a check that it's not really an interface.
classExistsSansAutoload
Needed to kill the autoload feature in PHP5 for classes created dynamically.
classOrInterfaceExists
Checks that a class or interface has been declared.
classOrInterfaceExistsSansAutoload
Needed to kill the autoload feature in PHP5 for classes created dynamically.
clear
SimpleTestContext::clear() in simpletest.php
Clears down the current context.
clear
Discards the contents of the error queue.
clear
Discards the contents of the error queue.
clipString
Clips a string to a maximum length.
collect
Scans the directory and adds what it can.
collect
TestSuite::collect() in test_case.php
Delegates to a visiting collector to add test files.
createInvoker
Used to invoke the single tests.
createInvoker
Every reporter gets a chance to wrap the invoker.
createInvoker
Can wrap the invoker in preperation for running a test.
createInvoker
Can wrap the invoker in preperation for running a test.
createSuiteFromClasses
Builds a test suite from a class list.
collector.php
collector.php in collector.php
clear
SimpleEncoding::clear() in encoding.php
Empties the request of parameters.
clearFrameFocus
Clears the frame focus.
clearFrameFocus
Clears the frame focus. All frames will be searched for content.
clearFrameFocus
Clears the frame focus. All frames will be searched for content.
clearFrameFocus
Clears the frame focus. Does nothing for a leaf page.
clearRequest
Clears down all parameters.
click
SimpleBrowser::click() in browser.php
Clicks a visible text item. Will first try buttons, then links and then images.
click
WebTestCase::click() in web_tester.php
Clicks a visible text item. Will first try buttons, then links and then images.
clickImage
WebTestCase::clickImage() in web_tester.php
Clicks the submit image by some kind of label. Usually
clickImage
Clicks the submit image by some kind of label. Usually
clickImageById
Clicks the submit image by ID attribute. The owning form will be submitted by this. Clicking outside of the boundary of the coordinates will result in a failure.
clickImageById
Clicks the submit image by ID attribute. The owning form will be submitted by this. Clicking outside of the boundary of the coordinates will result in a failure.
clickImageByName
Clicks the submit image by the name. Usually
clickImageByName
Clicks the submit image by the name. Usually
clickLink
Follows a link by label. Will click the first link found with this link text by default, or a later one if an index is given. The match ignores case and white space issues.
clickLink
WebTestCase::clickLink() in web_tester.php
Follows a link by name. Will click the first link found with this link text by default, or a later one if an index is given. Match is case insensitive with normalised space.
clickLinkById
Follows a link by id attribute.
clickLinkById
Follows a link by id attribute.
clickSubmit
Clicks the submit button by label. The owning form will be submitted by this.
clickSubmit
WebTestCase::clickSubmit() in web_tester.php
Clicks the submit button by label. The owning form will be submitted by this.
clickSubmitById
Clicks the submit button by ID attribute. The owning form will be submitted by this.
clickSubmitById
Clicks the submit button by ID attribute of the button itself. The owning form will be submitted by this.
clickSubmitByName
Clicks the submit button by name attribute. The owning form will be submitted by this.
clickSubmitByName
Clicks the submit button by name attribute. The owning form will be submitted by this.
close
SimpleSocket::close() in socket.php
Closes the socket preventing further reads.
createBrowser
Creates a new default web browser object.
createConnection
Opens a socket to the route.
createConnection
Opens a socket to the route.
createLexer
Sets up the matching lexer. Starts in 'text' mode.
createTag
Factory for the tag objects. Creates the appropriate tag object for the incoming tag name and attributes.
cookies.php
cookies.php in cookies.php
d
top
disableExpectationNameChecks
Disables a name check when setting expectations.
DefaultReporter
DefaultReporter in default_reporter.php
The default reporter used by SimpleTest's autorun feature. The actual reporters used are dependency injected and can be overridden.
DefaultReporter
DefaultReporter::DefaultReporter() in default_reporter.php
Assembles the appopriate reporter for the environment.
describeDifference
Creates a human readable description of the difference between two variables. Uses a dynamic call.
describeException
Summary of an Exception object.
describeValue
Renders a variable in a shorter form than print_r().
DetachedTestCase
Sets the location of the remote test.
DetachedTestCase
DetachedTestCase in detached.php
Runs an XML formated test in a separate process.
dump
SimpleTestCase::dump() in test_case.php
Sends a formatted dump of a variable to the test suite for those emergency debugging situations.
dump
SimpleDumper::dump() in dumper.php
Sends a formatted dump of a variable to a string.
dumpOutput
ShellTestCase::dumpOutput() in shell_tester.php
Dumps the output of the last command.
default_reporter.php
default_reporter.php in default_reporter.php
detached.php
detached.php in detached.php
dumper.php
dumper.php in dumper.php
decodeHtml
Decodes any HTML entities.
DEFAULT_CONNECTION_TIMEOUT
DEFAULT_CONNECTION_TIMEOUT in user_agent.php
DEFAULT_MAX_NESTED_FRAMES
DEFAULT_MAX_REDIRECTS
DEFAULT_MAX_REDIRECTS in user_agent.php
e
top
EclipseInvoker
EclipseInvoker in eclipse.php
Invoker decorator for Eclipse. Captures output until the end of the test.
EclipseInvoker
EclipseReporter
Reporter to be run inside of Eclipse interface.
EclipseReporter
EclipseReporter in eclipse.php
base reported class for eclipse plugin
escapeVal
C style escaping.
eclipse.php
eclipse.php in eclipse.php
error
TestCase::error() in phpunit_test_case.php
Sends an error which we interpret as a fail with a different message for compatibility.
errorAt
SimpleMock::errorAt() in mock_objects.php
Sets up a trigger to throw an error upon the method call.
errorOn
SimpleMock::errorOn() in mock_objects.php
Sets up a trigger to throw an error upon the method call.
expect
SimpleMock::expect() in mock_objects.php
Sets up an expected call with a set of expected parameters in that call. All calls will be compared to these expectations regardless of when the call is made.
expectArguments
expectArguments
SimpleMock::expectArguments() in mock_objects.php
expectArgumentsAt
expectAt
SimpleMock::expectAt() in mock_objects.php
Sets up an expected call with a set of expected parameters in that call. The expected call count will be adjusted if it is set too low to reach this call.
expectAtLeastOnce
Convenience method for requiring a method call.
expectCallCount
SimpleMock::expectCallCount() in mock_objects.php
Sets an expectation for the number of times a method will be called. The tally method is used to check this.
expectMaximumCallCount
Sets the number of times a method may be called before a test failure is triggered.
expectMinimumCallCount
Sets the number of times to call a method to prevent a failure on the tally.
expectNever
SimpleMock::expectNever() in mock_objects.php
Convenience method for barring a method call.
expectOnce
SimpleMock::expectOnce() in mock_objects.php
Convenience method for a single method call.
EqualExpectation
Sets the value to compare against.
EqualExpectation
EqualExpectation in expectation.php
Test for equality.
error
SimpleTestCase::error() in test_case.php
Formats a PHP error and dispatches it to the reporter.
exception
Formats an exception and dispatches it to the reporter.
ExceptionExpectation
ExceptionExpectation in exceptions.php
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.
execute
ShellTestCase::execute() in shell_tester.php
Executes a command and buffers the results.
execute
SimpleShell::execute() in shell_tester.php
Actually runs the command. Does not trap the error stream output as this need PHP 4.3+.
expectError
UnitTestCase::expectError() in unit_tester.php
Prepares for an error. If the error mismatches it passes through, otherwise it is swallowed. Any left over errors trigger failures.
expectError
Sets up an expectation of an error. If this is not fulfilled at the end of the test, a failure will occour. If the error does happen, then this will cancel it out and send a pass message.
expectException
Sets up an expectation of an exception.
expectException
Prepares for an exception. If the error mismatches it passes through, otherwise it is swallowed. Any left over errors trigger failures.
extract
Pulls the earliest error from the queue.
errors.php
errors.php in errors.php
exceptions.php
exceptions.php in exceptions.php
expectation.php
expectation.php in expectation.php
endElement
End of element event.
endElement
End of element event.
enter
Adds a state to the stack and sets it to be the current state.
expandUrl
Expands expandomatic URLs into fully qualified URLs for the frameset page.
expandUrl
Expands expandomatic URLs into fully qualified URLs.
expectEndTag
Tag contains no end element.
expectEndTag
Check to see if the tag can have both start and end tags with content in between.
expectEndTag
Tag contains no content.
expectEndTag
Tag contains no content.
expectEndTag
Tag contains no content.
expectEndTag
Check to see if the tag can have both start and end tags with content in between.
expectEndTag
Base tag is not a block tag.
expectEndTag
Tag contains no end element.
expectEndTag
Tag contains no content.
expectEndTag
Tag contains no content.
encoding.php
encoding.php in encoding.php
f
top
FailedExpectation
FailedExpectation in expectation.php
An expectation that never matches.
FalseExpectation
FalseExpectation in expectation.php
An expectation that passes on boolean false.
findFirstAction
Searches the call list for a matching parameter set. Returned by reference.
fail
SimpleTestCase::fail() in test_case.php
Sends a fail event with a message.
fetch
Dispatches the content to the route's socket.
fetchResponse
Fetches a URL as a response object. Will keep trying if redirected.
FieldExpectation
FieldExpectation in web_tester.php
Test for an HTML widget value match.
FieldExpectation
Sets the field value to compare against.
forward
WebTestCase::forward() in web_tester.php
Equivalent to hitting the forward button on the browser.
forward
Step forward one place. If already at the latest entry then nothing will happen.
forward
Equivalent to hitting the forward button on the browser. The browser history is unchanged on failure. The page content is refetched as there is no concept of content caching in SimpleTest.
free
Frees up any references so as to allow the PHP garbage collection from unset() to work.
form.php
form.php in form.php
frames.php
frames.php in frames.php
g
top
getDumper
Means to display human readable object comparisons.
getName
PHPUnit_TestCase::getName() in pear_test_case.php
Accessor for name, normally just the class name.
generate
Mock::generate() in mock_objects.php
Clones a class' interface and creates a mock version that can have return values and expectations set.
generate
MockGenerator::generate() in mock_objects.php
Clones a class' interface and creates a mock version that can have return values and expectations set.
generatePartial
Mock::generatePartial() in mock_objects.php
Generates a version of a class with selected methods mocked only. Inherits the old class and chains the mock methods of an aggregated mock object.
generatePartial
Generates a version of a class with selected methods mocked only. Inherits the old class and chains the mock methods of an aggregated mock object.
generateSubclass
Subclasses a class and overrides every method with a mock one that can have return values and expectations set. Chains to an aggregated SimpleMock.
getCallCount
SimpleMock::getCallCount() in mock_objects.php
Fetches the call count of a method so far.
getExpectationLine
Mock::getExpectationLine() in mock_objects.php
Uses a stack trace to find the line of an assertion.
get
SimpleTestContext::get() in simpletest.php
Accessor for the Singleton resource.
getAssertionLine
Uses a stack trace to find the line of an assertion.
getBaseTestCase
Test to see if a class is derived from the SimpleTestCase class.
getContext
SimpleTest::getContext() in simpletest.php
Accessor for the context of the current test run.
getDefaultProxy
Accessor for default proxy host.
getDefaultProxy
getDefaultProxyPassword
Accessor for default proxy password.
getDefaultProxyPassword
getDefaultProxyUsername
Accessor for default proxy username.
getDefaultProxyUsername
getDumper
Gets the formatter for variables and other small generic data items.
getDumper
Gets the formatter for variables and other small generic data items.
getDumper
Gets the formatter for variables and other small generic data items.
getExceptionCount
Accessor for the number of untrapped errors so far.
getFailCount
Accessor for the number of fails so far.
getInterfaceMethods
Gets the list of methods for the implemented interfaces only.
getInterfaces
SimpleReflection::getInterfaces() in reflection_php5.php
Gets the list of interfaces from a class. If the class name is actually an interface then just that interface is returned.
getLabel
Accessor for the test name for subclasses.
getLabel
TestSuite::getLabel() in test_case.php
Accessor for the test name for subclasses. If the suite wraps a single test case the label defaults to the name of that test.
getLabel
Accessor for the test name for subclasses.
getLabel
BadTestSuite::getLabel() in test_case.php
Accessor for the test name for subclasses.
getLabel
Accessor for the test name for subclasses.
getMethods
SimpleReflection::getMethods() in reflection_php5.php
Gets the list of methods on a class or interface.
getMockBaseClass
getMockBaseClass
getName
Accessor for name.
getOutput
SimpleShell::getOutput() in shell_tester.php
Accessor for the last output.
getOutput
ShellTestCase::getOutput() in shell_tester.php
Accessor for the last output.
getOutputAsList
Accessor for the last output.
getOutputAsList
SimpleShell::getOutputAsList() in shell_tester.php
Accessor for the last output.
getOutstanding
Tests for any left over exception.
getParent
SimpleReflection::getParent() in reflection_php5.php
Finds the parent class name.
getPassCount
Accessor for the number of passes so far.
getReporter
Accessor for current reporter.
getSeverityAsString
Converts an error code into it's string representation.
getSignature
SimpleReflection::getSignature() in reflection_php5.php
Writes the source code matching the declaration of a method.
getSize
Accessor for the number of subtests.
getSize
SimpleTestCase::getSize() in test_case.php
Accessor for the number of subtests including myelf.
getSize
BadTestSuite::getSize() in test_case.php
Number of contained test cases. Always zero.
getSize
TestSuite::getSize() in test_case.php
Number of contained test cases.
getSize
Accessor for the number of subtests.
getSize
The size in the attributes.
getStatus
Accessor for current status. Will be false if there have been any failures or exceptions.
getStatus
Accessor for current status. Will be false if there have been any failures or exceptions.
getStatus
Accessor for current status. Will be false if there have been any failures or exceptions.
getTest
SimpleCommandLineParser::getTest() in default_reporter.php
Run only this test.
getTest
Accessor for currently running test case.
getTestCase
Run only this test suite.
getTestCase
Accessor for test case being run.
getTestCase
Accessor for test case being run.
getTestCaseCount
Accessor for total test size in number of test cases. Null until the first test is started.
getTestCaseProgress
Accessor for the number of test cases completed so far.
getTestList
Accessor for internal test stack. For subclasses that need to see the whole test history for display purposes.
getTests
Gets a list of test names. Normally that will be all internal methods that start with the name "test". This method should be overridden if you want a different rule.
getType
Gets the string representation of a type.
getVersion
SimpleTest::getVersion() in simpletest.php
Reads the SimpleTest version from the release file.
getVersion
GroupTest
GroupTest in test_case.php
get
WebTestCase::get() in web_tester.php
Fetches a page into the page buffer. If there is no base for the URL then the current base URL is used. After the fetch the base URL reflects the new location.
get
SimpleBrowser::get() in browser.php
Fetches the page content with a simple GET request.
getAction
Absolute URL of the target.
getAll
SimpleEncoding::getAll() in encoding.php
Accessor for listing of pairs.
getAllTopLevelDomains
A pipe seperated list of all TLDs that result in two part domain names.
getAssertionLine
Uses a stack trace to find the line of an assertion.
getAttribute
Accessor for an attribute.
getAttribute
Accessor for an attribute.
getAuthentication
Accessor for last Authentication type. Only valid straight after a challenge (401).
getAuthentication
Accessor for authentication type.
getAuthentication
Accessor for last Authentication type. Only valid straight after a challenge (401).
getAuthentication
Accessor for last Authentication type. Only valid straight after a challenge (401).
getBaseCookieValue
Reads the current cookies within the base URL.
getBasePath
Gets the path to the page.
getBaseUrl
Base URL if set via BASE tag page url otherwise
getBaseUrl
Page base URL.
getBaseUrl
Accessor for base URL of page if set via BASE tag
getBrowser
WebTestCase::getBrowser() in web_tester.php
Gets a current browser reference for setting special expectations or for detailed examination of page fetches.
getChildElements
List of legal child elements.
getContent
Accessor for the whole content so far.
getContent
Accessor for raw page information.
getContent
Accessor for the content after the last header line.
getContentAsText
Accessor for plain text version of the page.
getCookie
WebTestCase::getCookie() in web_tester.php
Gets the cookie value for the current browser context.
getCookieValue
Reads the most specific cookie value from the browser cookies.
getCookieValue
Reads the most specific cookie value from the browser cookies. Looks for the longest path that matches.
getCookieValue
Reads the most specific cookie value from the browser cookies.
getCurrent
Accessor for current state.
getCurrentCookieValue
Reads the current cookies for the current URL.
getDefault
Accessor for starting value.
getDefault
Accessor for starting value that is active.
getDefault
Accessor for starting value.
getDefault
Accessor for starting value. Will be set to the option label if no value exists.
getDefault
Accessor for starting value. The default value is "on".
getDefault
Accessor for starting value that is active.
getDefault
Accessor for default value parsed with the tag.
getDefault
Scans options for defaults to populate the value array().
getDefault
Scans options for defaults. If none, then the first option is selected.
getEncodedRequest
Accessor for current request parameters in URL string form. Will return teh original request if at all possible even if it doesn't make much sense.
getError
Accessor for an outstanding error.
getExpiry
Accessor for expiry.
getField
Accessor for a form element value within a page.
getField
Accessor for a form element value within a page.
getField
Accessor for a form element value within the page.
getFieldById
Accessor for a form element value within the page.
getFieldByName
Accessor for a form element value within the page.
getFor
Access for the ID to attach the label to.
getFormById
Finds a held form by the form ID. A way of identifying a specific form when we have control of the HTML code.
getFormById
Finds a held form by the form ID. A way of
getFormByImage
Finds a held form by image using a selector.
getFormByImage
Finds a held form by image using a selector.
getFormBySubmit
Finds a held form by button label. Will only search correctly built forms.
getFormBySubmit
Finds a held form by button label. Will only search correctly built forms.
getFragment
Accessor for fragment at end of URL after the "#".
getFrameFocus
Accessor for current frame focus. Will be false if no frame has focus.
getFrameFocus
Accessor for current frame focus. Will be false if no frame has focus.
getFrameFocus
Accessor for current frame focus. Will be false if no frame has focus. Will have the nested frame focus if any.
getFrameFocus
Accessor for current frame focus. Will be false as no frames.
getFrames
Accessor for frames information.
getFrames
Fetches a list of loaded frames.
getFrames
Accessor for a breakdown of the frameset.
getFrameset
Accessor for frame name and source URL for every frame that will need to be loaded. Immediate children only.
getHeaders
Accessor for header block. The response is the combination of this and the content.
getHeaders
Accessor for raw headers of page.
getHeaders
Accessor for raw header information.
getHeaders
Accessor for raw header information.
getHost
Accessor for hostname and port.
getHost
Accessor for the truncated host to which this cookie applies.
getHref
Accessor for URL as string.
getHttpVersion
Accessor for parsed HTTP protocol version.
getId
ID field of form for unique identification.
getIdentity
Extracts the username and password for use in rendering a URL.
getKey
Is this the value we are looking for?
getKey
Is this the value we are looking for?
getLabel
Value of browser visible text.
getLabel
Value of browser visible text.
getLabel
Value of browser visible text.
getLink
Finds a URL by label. Will find the first link found with this link text by default, or a later one if an index is given. The match ignores case and white space issues.
getLinkById
Finds a link by id attribute.
getLocation
Returns the redirected URL or false if no redirection.
getMethod
HTTP request method.
getMethod
HTTP request method.
getMethod
Original request method.
getMethod
Request method used to fetch this frame.
getMethod
Accessor for method of form submission.
getMethod
HTTP request method.
getMethod
Original request method.
getMimeType
Accessor for current MIME type.
getMimeType
Accessor for current MIME type.
getMimeType
Accessor for current MIME type.
getMimeType
Accessor for MIME type header information.
getName
SimpleByName::getName() in selector.php
getName
Accessor for name submitted as the key in GET/POST variables hash.
getName
Fetches the name for the widget from the first member.
getName
Accessor for name.
getNewCookies
Accessor for any new cookies.
getPage
Accessor for page if any. This may be a directory name if ambiguious.
getParameters
Parameters of last fetch from current history position.
getPassword
SimpleRealm::getPassword() in authentication.php
Accessor for current identity.
getPassword
Accessor for password.
getPath
Accessor for path.
getPath
Accessor for path.
getPort
Accessor for port number.
getRaw
Accessor for raw text of either all the pages or the frame in focus.
getRaw
Accessor for raw header block.
getRaw
Accessor for raw text of page.
getRealm
Accessor for last Authentication realm. Only valid straight after a challenge (401).
getRealm
Accessor for last Authentication realm. Only valid straight after a challenge (401).
getRealm
Accessor for security realm.
getRealm
Accessor for last Authentication realm. Only valid straight after a challenge (401).
getRequest
Accessor for raw bytes sent down the wire.
getRequest
Original request as bytes sent down the wire.
getRequest
Accessor for outgoing header information.
getRequestData
Original request data.
getRequestData
Original request data.
getRequestData
Original request data.
getResponseCode
Accessor for last response code.
getResponseCode
Accessor for last response code.
getResponseCode
Accessor for parsed HTTP error code.
getResponseCode
Accessor for HTTP response code.
getScheme
Accessor for protocol part.
getSent
Raw request that was sent down the wire.
getSent
Accessor for content so far.
getTagName
Accessor for tag name.
getTarget
Gets the frame target if present. Although not strictly part of the URL specification it acts as similarily to the browser.
getText
Accessor for content reduced to visible text. Acts like a text mode browser, normalising space and reducing images to their alt text.
getText
Accessor for plain text of either all the pages or the frame in focus.
getText
Accessor for plain text of page as a text browser would see it.
getTitle
Accessor for parsed title.
getTitle
Accessor for parsed title.
getTitle
Accessor for parsed title.
getTld
Accessor for top level domain.
getTransportError
Accessor for last error.
getTransportError
Gets the last response error.
getTransportError
Accessor for last error.
getTransportError
Accessor for last error.
getUrl
WebTestCase::getUrl() in web_tester.php
Accessor for the currently selected URL.
getUrl
Accessor for current URL of page or frame if focused.
getUrl
Last fully qualified URL for current history position.
getUrl
Original resource name.
getUrl
Resource name.
getUrl
Resource name.
getUrl
Original resource name.
getUrlById
Accessor for a URL by the id attribute.
getUrlById
Accessor for a URL by the id attribute. If in a frameset then the first link found with that ID attribute is returned only. Focus on a frame if you want one from a specific part of the frameset.
getUrls
Accessor for a list of all links in current page.
getUrls
Accessor for a list of all links.
getUrls
Accessor for a list of all fixed links.
getUrlsByLabel
Accessor for URLs by the link label. Label will match regardess of whitespace issues and case.
getUrlsByLabel
Accessor for URLs by the link label. Label will match regardess of whitespace issues and case.
getUsername
SimpleRealm::getUsername() in authentication.php
Accessor for current identity.
getUsername
Accessor for user name.
getValue
Extracts current value from form.
getValue
Accessor for current selected widget or false if none.
getValue
Accessor for current selection value.
getValue
Accessor for currently set value or default if none.
getValue
Accessor for single value.
getValue
Is this the value we are looking for?
getValue
Is this the value we are looking for?
getValue
Accessor for current selection value.
getValue
Accessor for value. A deleted cookie will have an empty string for this.
getValue
Accessor for current selected widget or false if none.
getX
Accessor for horizontal image coordinate.
getY
Accessor for vertical image coordinate.
h
top
hasFinal
SimpleReflection::hasFinal() in reflection_php5.php
Scans for final methods, as they screw up inherited mocks by not allowing you to override them.
HtmlReporter
Does nothing yet. The first output will be sent on the first test start. For use by a web browser.
HtmlReporter
HtmlReporter in reporter.php
Sample minimal test displayer. Generates only failure messages and a pass count.
hasFrames
Test for the presence of a frameset.
hasFrames
Test for the presence of a frameset.
hasImage
Test to see if a form has an image control.
hasMoreThanOneLevel
hasSubmit
Test to see if a form has a submit button.
head
WebTestCase::head() in web_tester.php
Does a HTTP HEAD fetch, fetching only the page headers. The current base URL is unchanged by this.
head
SimpleBrowser::head() in browser.php
Fetches the page content with a HEAD request.
HttpHeaderExpectation
Sets the field and value to compare against.
HttpHeaderExpectation
HttpHeaderExpectation in web_tester.php
Test for a specific HTTP header within a header block.
http.php
http.php in http.php
i
top
isA
SimpleTestCompatibility::isA() in compatibility.php
Test to see if an object is a member of a class hiearchy.
isIdentical
Identity test. Drops back to equality + types for PHP5 objects as the === operator counts as the stronger reference constraint.
isReference
Test for two variables being aliases.
isMatch
SimpleSignatureMap::isMatch() in mock_objects.php
Searches the call list for a matching parameter set. True if successful.
IdenticalExpectation
IdenticalExpectation in expectation.php
Test for identity.
IdenticalExpectation
Sets the value to compare against.
ignore
SimpleTestOptions::ignore() in simpletest.php
ignore
SimpleTest::ignore() in simpletest.php
Sets the name of a test case to ignore, usually because the class is an abstract case that should not be run. Once PHP4 is dropped this will disappear as a public method and "abstract" will rule.
ignoreParentsIfIgnored
Scans the now complete ignore list, and adds
inCli
Static check for running in the comand line.
invoke
Invokes a test method and buffered with setUp() and tearDown() calls.
invoke
Invokes a test method whilst trapping expected exceptions. Any left over unthrown exceptions are then reported as failures.
invoke
Invokes a test method and dispatches any untrapped errors. Called back from the visiting runner.
invoke
Invokes a test method and buffered with setUp() and tearDown() calls.
isAbstract
SimpleReflection::isAbstract() in reflection_php5.php
Trivially determines if the class is abstract.
IsAExpectation
IsAExpectation in expectation.php
Tests either type or class name if it's an object.
IsAExpectation
Sets the type to compare with.
isExpectation
Test to see if a value is an expectation object.
isExpected
Compares the expected exception with any in the queue. Issues a pass or fail and returns the state of the test.
isIgnored
SimpleTest::isIgnored() in simpletest.php
Test to see if a test case is in the ignore list. Quite obviously the ignore list should be a separate object and will be one day.
isIgnored
isInterface
SimpleReflection::isInterface() in reflection_php5.php
Trivially determines if the class is an interface.
isXml
SimpleCommandLineParser::isXml() in default_reporter.php
Output should be XML or not.
invoker.php
invoker.php in invoker.php
ignore
Incoming data to be ignored.
ignoreCookies
Switches off cookie sending and recieving.
ignoreCookies
Switches off cookie sending and recieving.
ignoreCookies
Switches off cookie sending and recieving.
ignoreErrors
WebTestCase::ignoreErrors() in web_tester.php
Skips errors for the next request only. You might want to confirm that a page is unreachable for example.
ignoreFrames
Disables frames support. Frames will not be fetched and the frameset page will be used instead.
ignoreFrames
WebTestCase::ignoreFrames() in web_tester.php
Disables frames support. Frames will not be fetched and the frameset page will be used instead.
isChallenge
Test to see if the response is an authentication challenge.
isClickable
Tests to see if a click target exists.
isError
Test for an outstanding error.
isExpired
Test to see if cookie is expired against the cookie format time or timestamp.
isId
Test to see if id attribute matches.
isId
Scans the widgets for one with the appropriate ID field.
isImage
Tests to see if an image exists with this title or alt text.
isKey
Is this the value we are looking for?
isKey
Is this the value we are looking for?
isLabel
Test for a label match when searching.
isLabel
Test for a label match when searching.
isLabel
Test for a label match when searching.
isLabel
Scans the widgets for one with the appropriate attached label.
isLabel
Reads external or internal label.
isMatch
Comparison. Compares visible text of widget or related label or name.
isMatch
SimpleById::isMatch() in selector.php
Comparison. Compares id attribute of widget.
isMatch
SimpleByName::isMatch() in selector.php
Compares with name attribute of widget.
isMatch
SimpleByLabel::isMatch() in selector.php
Comparison. Compares visible text of widget or related label.
isOpen
Accessor for socket open state.
isPrivateContent
The content of options is not part of the page.
isPrivateContent
The content of textarea is not part of the page.
isPrivateContent
The current tag should not swallow all content for itself as it's searchable page content. Private content tags are usually widgets that contain default values.
isRedirect
Test to see if the response is a valid redirect.
isSecure
Accessor for the secure flag.
isSubmit
Tests to see if a submit button exists with this label.
isValidHost
Test for a cookie being valid for a host name.
isValidPath
Tests a path to see if the cookie applies there. The test path must be longer or equal to the cookie path.
isValue
Test to see if a value matches the option.
isWithin
SimpleRealm::isWithin() in authentication.php
Test to see if the URL is within the directory tree of the realm.
l
top
load
SimpleFileLoader::load() in test_case.php
Builds a test suite from a library of test cases.
$lock_size
leave
Leaves the current state and reverts to the previous one.
m
top
MaximumCallCountExpectation
Stashes the method and expected count for later reporting.
MaximumCallCountExpectation
MaximumCallCountExpectation in mock_objects.php
Confirms that the number of calls on a method is as expected.
MinimumCallCountExpectation
Stashes the method and expected count for later reporting.
MinimumCallCountExpectation
MinimumCallCountExpectation in mock_objects.php
Confirms that the number of calls on a method is as expected.
Mock
Mock::Mock() in mock_objects.php
Factory for mock object classes.
Mock
Mock in mock_objects.php
Static methods only service class for code generation of mock objects.
MockGenerator
MockGenerator::MockGenerator() in mock_objects.php
Builds initial reflection object.
MockGenerator
MockGenerator in mock_objects.php
Service class for code generation of mock objects.
MOCK_ANYTHING
MOCK_ANYTHING in mock_objects.php
Default character simpletest will substitute for any value
mock_objects.php
mock_objects.php in mock_objects.php
makeDry
Signals that the next evaluation will be a dry run. That is, the structure events will be recorded, but no tests will be run.
makeDry
Signals that the next evaluation will be a dry run. That is, the structure events will be recorded, but no tests will be run.
makeDry
Signals that the next evaluation will be a dry run. That is, the structure events will be recorded, but no tests will be run.
MethodExistsExpectation
MethodExistsExpectation in expectation.php
Tests for existance of a method in an object
MethodExistsExpectation
Sets the value to compare against.
MultipleReporter
MultipleReporter in scorer.php
For sending messages to multiple reporters at the same time.
makeAbsolute
Replaces unknown sections to turn a relative URL into an absolute one. The base URL can be either a string or a SimpleUrl object.
mapHandler
Adds a mapping from a mode to another handler.
match
Attempts to match all patterns at once against a string.
merge
SimpleEncoding::merge() in encoding.php
Adds a set of parameters to this query.
MultipleSelectionTag
Drop down widget.
MultipleSelectionTag
Starts with attributes only.
n
top
name
TestCase::name() in phpunit_test_case.php
Accessor for name.
NestingCaseTag
NestingCaseTag in xml.php
Accumulator for incoming case tag. Holds the incoming test structure information for later dispatch to the reporter.
NestingCaseTag
Sets the basic test information except the name.
NestingGroupTag
Sets the basic test information except the name.
NestingGroupTag
NestingGroupTag in xml.php
Accumulator for incoming group tag. Holds the incoming test structure information for later dispatch to the reporter.
NestingMethodTag
NestingMethodTag in xml.php
Accumulator for incoming method tag. Holds the incoming test structure information for later dispatch to the reporter.
NestingMethodTag
Sets the basic test information except the name.
NestingXmlTag
NestingXmlTag in xml.php
Accumulator for incoming tag. Holds the incoming test structure information for later dispatch to the reporter.
NestingXmlTag
Sets the basic test information except the name.
NoPatternExpectation
NoPatternExpectation in expectation.php
Fail if a pattern is detected within the comparison.
NoPatternExpectation
Sets the reject pattern
noSkips
SimpleCommandLineParser::noSkips() in default_reporter.php
Output should suppress skip messages.
NoSkipsReporter
NoSkipsReporter in reporter.php
Suppresses skip messages.
NotAExpectation
Sets the type to compare with.
NotAExpectation
NotAExpectation in expectation.php
Tests either type or class name if it's an object.
NotEqualExpectation
NotEqualExpectation in expectation.php
Test for inequality.
NotEqualExpectation
Sets the value to compare against.
NoTextExpectation
Sets the reject pattern
NoTextExpectation
NoTextExpectation in web_tester.php
Fail if a substring is detected within the comparison text.
NotIdenticalExpectation
NotIdenticalExpectation in expectation.php
Test for non-identity.
NotIdenticalExpectation
Sets the value to compare against.
NoHttpHeaderExpectation
Sets the field and value to compare against.
NoHttpHeaderExpectation
NoHttpHeaderExpectation in web_tester.php
Test for a specific HTTP header within a header block that should not be found.
normalise
Turns HTML into text browser visible text. Images are converted to their alt text and tags are supressed.
normalisePath
Replaces . and .. sections of the path.
o
top
OutsideMarginExpectation
OutsideMarginExpectation in expectation.php
Test for being outside of a range.
OutsideMarginExpectation
Sets the value to compare against and the fuzziness of the match. Used for comparing floating point values.
overlayMessage
Overlays the generated message onto the stored user message. An additional message can be interjected.
p
top
paintCaseEnd
Drops the name.
paintCaseStart
Stashes the test case name for the later failure message.
paintError
Stash the first error. Clicking the test item goes to first error.
paintException
Stash the first exception. Clicking the test item goes to first message.
paintFail
Stash the first failing item. Clicking the test item goes to first fail.
paintFooter
We don't display any special footer.
paintGroupEnd
Paints coverage report if enabled.
paintGroupStart
Stashes the name of the test suite. Starts test coverage if enabled.
paintHeader
We don't display any special header.
paintMethodEnd
Only send one message if the test passes, after that suppress the message.
paintMethodStart
Paints nothing at the start of a test method, but stash the method name for later.
paintPass
Stash the first passing item. Clicking the test item goes to first pass.
PHPUnit_TestCase
Constructor. Sets the test name.
PHPUnit_TestCase
PHPUnit_TestCase in pear_test_case.php
Adapter for PEAR PHPUnit test case to allow legacy PEAR test cases to be used with SimpleTest.
pear_test_case.php
pear_test_case.php in pear_test_case.php
phpunit_test_case.php
phpunit_test_case.php in phpunit_test_case.php
ParametersExpectation
ParametersExpectation in mock_objects.php
Parameter comparison assertion.
ParametersExpectation
Sets the expected parameter list.
parser.php
parser.php in parser.php
paintCaseEnd
Paints the end of a test case. Will paint the page footer if the stack of tests has unwound.
paintCaseEnd
Paints the end of a test case.
paintCaseEnd
Paints the end of a test case.
paintCaseEnd
Paints the end of a test case.
paintCaseEnd
Paints the end of a test case.
paintCaseEnd
paintCaseStart
Paints the start of a test case. Will also paint the page header and footer if this is the first test. Will stash the size if the first start.
paintCaseStart
Paints the start of a test case.
paintCaseStart
paintCaseStart
Paints the start of a test case.
paintCaseStart
Paints the start of a test case.
paintCaseStart
Paints the start of a test case.
paintEnd
Signals the appropriate end event on the listener.
paintEnd
Signals the appropriate end event on the listener.
paintEnd
Signals the appropriate end event on the listener.
paintError
Chains to the wrapped reporter.
paintError
Chains to the wrapped reporter.
paintError
Paints a PHP error.
paintError
Deals with PHP 4 throwing an error.
paintError
Paints a PHP error or exception.
paintError
Paints error as XML.
paintException
Deals with PHP 5 throwing an exception.
paintException
Chains to the wrapped reporter.
paintException
Paints exception as XML.
paintException
Paints a PHP exception.
paintException
Chains to the wrapped reporter.
paintException
Paints a PHP error or exception.
paintFail
Paints the test failure as a stack trace.
paintFail
paintFail
Chains to the wrapped reporter.
paintFail
Increments the fail count.
paintFail
Paints the test failure with a breadcrumbs trail of the nesting test suites below the top level test.
paintFail
Paints failure as XML.
paintFail
Chains to the wrapped reporter.
paintFooter
Paints the end of the test with a summary of the passes and failures.
paintFooter
Paints the end of the test with a summary of the passes and failures.
paintFooter
Paints the test document footer.
paintFooter
Paints the test document footer.
paintFormattedMessage
Chains to the wrapped reporter.
paintFormattedMessage
Paints a formatted ASCII message such as a variable dump.
paintFormattedMessage
Chains to the wrapped reporter.
paintFormattedMessage
Paints formatted text such as dumped variables.
paintFormattedMessage
Paints a formatted ASCII message such as a variable dump.
paintFormattedMessage
Paints formatted text such as dumped variables.
paintGroupEnd
Paints the end of a group test.
paintGroupEnd
Paints the end of a group test.
paintGroupEnd
Paints the end of a group test.
paintGroupEnd
Paints the end of a group test.
paintGroupEnd
Paints the end of a group test. Will paint the page footer if the stack of tests has unwound.
paintGroupEnd
Paints the end of a group test.
paintGroupStart
Paints the start of a group test.
paintGroupStart
Paints the start of a group test. Will also paint the page header and footer if this is the first test. Will stash the size if the first start.
paintGroupStart
Paints the start of a group test.
paintGroupStart
Paints the start of a group test.
paintGroupStart
Paints the start of a group test.
paintGroupStart
Paints the start of a group test.
paintHeader
Paints the title only.
paintHeader
Paints the test document header.
paintHeader
Paints the test document header.
paintHeader
Paints the top of the web page setting the title to the name of the starting test.
paintMessage
Paints a simple supplementary message.
paintMessage
Paints a simple supplementary message.
paintMessage
Chains to the wrapped reporter.
paintMessage
Chains to the wrapped reporter.
paintMethodEnd
Paints the end of a test method. Will paint the page footer if the stack of tests has unwound.
paintMethodEnd
Paints the end of a test method.
paintMethodEnd
Paints the end of a test method.
paintMethodEnd
Paints the end of a test method.
paintMethodEnd
paintMethodEnd
Paints the end of a test method.
paintMethodStart
paintMethodStart
Paints the start of a test method.
paintMethodStart
Paints the start of a test method.
paintMethodStart
Paints the start of a test method.
paintMethodStart
Paints the start of a test method.
paintMethodStart
Paints the start of a test method.
paintPass
Chains to the wrapped reporter.
paintPass
Increments the pass count.
paintPass
Paints pass as XML.
paintPass
Chains to the wrapped reporter.
paintSignal
By default just ignores user generated events.
paintSignal
Serialises the event object.
paintSignal
Chains to the wrapped reporter.
paintSignal
Chains to the wrapped reporter.
paintSkip
Does nothing.
paintSkip
Prints the message for skipping tests.
paintSkip
Prints the message for skipping tests.
paintSkip
Paints the skipping message and tag.
paintSkip
Prints the message for skipping tests.
paintSkip
Prints the message for skipping tests.
paintSkip
Prints the message for skipping tests.
paintStart
Signals the appropriate start event on the listener.
paintStart
Signals the appropriate start event on the listener.
paintStart
Signals the appropriate start event on the listener.
parse
Parses a block of XML sending the results to the listener.
pass
SimpleTestCase::pass() in test_case.php
PatternExpectation
Sets the value to compare against.
PatternExpectation
PatternExpectation in expectation.php
Test for a pattern using Perl regex rules.
prefer
SimpleTest::prefer() in simpletest.php
Puts the object to the global pool of 'preferred' objects which can be retrieved with SimpleTest :: preferred() method.
preferred
SimpleTest::preferred() in simpletest.php
Retrieves 'preferred' objects from global pool. Class filter
ParallelRegex
Constructor. Starts with no patterns.
ParallelRegex
ParallelRegex in parser.php
Compounded regular expression. Any of the contained patterns could match and when one does, it's label is returned.
parse
SimpleLexer::parse() in parser.php
Splits the page text into tokens. Will fail
parse
Runs the content through the lexer which should call back to the acceptors.
parse
Reads the raw content and send events into the page to be built.
post
SimpleBrowser::post() in browser.php
Fetches the page content with a POST request.
post
WebTestCase::post() in web_tester.php
Fetches a page by POST into the page buffer.
page.php
page.php in page.php
r
top
register
SimpleCallSchedule::register() in mock_objects.php
Stores an action against a signature that will always fire unless masked by a time specific one.
registerAt
Stores an action against a signature that will fire at a specific time in the future.
respond
SimpleCallSchedule::respond() in mock_objects.php
Actually carry out the action stored previously, if the parameters match.
ReferenceExpectation
Sets the reference value to compare against.
ReferenceExpectation
ReferenceExpectation in expectation.php
Test for reference.
RemoteTestCase
Sets the location of the remote test.
RemoteTestCase
RemoteTestCase in remote.php
Runs an XML formated test on a remote server.
run
SimpleTestCase::run() in test_case.php
Uses reflection to run every method within itself starting with the string "test" unless a method is specified.
run
BadTestSuite::run() in test_case.php
Sends a single error to the reporter.
run
RemoteTestCase::run() in remote.php
Runs the top level test for this class. Currently reads the data as a single chunk. I'll fix this once I have added iteration to the browser.
run
TestSuite::run() in test_case.php
Invokes run() on all of the held test cases, instantiating them if necessary.
run
DetachedTestCase::run() in detached.php
Runs the top level test for this class. Currently reads the data as a single chunk. I'll fix this once I have added iteration to the browser.
reflection_php4.php
reflection_php4.php in reflection_php4.php
reflection_php5.php
reflection_php5.php in reflection_php5.php
remote.php
remote.php in remote.php
reporter.php
reporter.php in reporter.php
read
SimpleSocket::read() in socket.php
Reads data from the socket. The error suppresion is a workaround for PHP4 always throwing a warning with a secure socket.
readCookiesFromJar
Reads all the relevant cookies from the cookie jar.
recordEntry
Adds a successfully fetched page to the history.
resetValue
Resets the form element value back to the default.
restart
Removes expired and temporary cookies as if the browser was closed and re-opened.
restart
WebTestCase::restart() in web_tester.php
Simulates the closing and reopening of the browser.
restart
SimpleUserAgent::restart() in user_agent.php
Removes expired and temporary cookies as if the browser was closed and re-opened. Authorisation has to be obtained again as well.
restartSession
Starts with no realms set up.
restartSession
Removes expired and temporary cookies as if the browser was closed and re-opened.
retry
WebTestCase::retry() in web_tester.php
Equivalent to hitting the retry button on the browser. Will attempt to repeat the page fetch.
retry
SimpleBrowser::retry() in browser.php
Equivalent to hitting the retry button on the browser. Will attempt to repeat the page fetch. If there is no history to repeat it will give false.
rewriteArrayWithMultipleLevels
s
top
setTimeout
Sets a socket timeout for each chunk.
SimpleTestCompatibility
SimpleTestCompatibility in compatibility.php
Static methods for compatibility between different PHP versions.
setLooselyTyped
Sets equality operation to act as a simple equal comparison only, allowing a broader range of matches.
setName
PHPUnit_TestCase::setName() in pear_test_case.php
Does nothing. For compatibility only.
setReturnReference
Sets a return for a parameter list that will be passed by reference for all calls.
setReturnReferenceAt
Sets a return for a parameter list that will be passed by value only when the required call count is reached.
setReturnValue
SimpleMock::setReturnValue() in mock_objects.php
Sets a return for a parameter list that will be passed by value for all calls to this method.
setReturnValueAt
SimpleMock::setReturnValueAt() in mock_objects.php
Sets a return for a parameter list that will be passed by value only when the required call count is reached.
SimpleByReference
SimpleByReference in mock_objects.php
A type of SimpleMethodAction.
SimpleByReference
Stashes it for later.
SimpleByValue
SimpleByValue::SimpleByValue() in mock_objects.php
Stashes it for later.
SimpleByValue
SimpleByValue in mock_objects.php
A type of SimpleMethodAction.
SimpleCallSchedule
Sets up an empty response schedule.
SimpleCallSchedule
SimpleCallSchedule in mock_objects.php
Allows setting of actions against call signatures either at a specific time, or always. Specific time settings trump lasting ones, otherwise the most recently added will mask an earlier match.
SimpleErrorThrower
SimpleErrorThrower in mock_objects.php
A type of SimpleMethodAction.
SimpleErrorThrower
Stashes an error to throw later.
SimpleMock
SimpleMock::SimpleMock() in mock_objects.php
Creates an empty action list and expectation list.
SimpleMock
SimpleMock in mock_objects.php
A base class or delegate that extends an
SimpleSignatureMap
Creates an empty call map.
SimpleSignatureMap
SimpleSignatureMap in mock_objects.php
Retrieves method actions by searching the parameter lists until an expected match is found.
SimpleThrower
SimpleThrower::SimpleThrower() in mock_objects.php
Stashes it for later.
SimpleThrower
SimpleThrower in mock_objects.php
A type of SimpleMethodAction.
Stub
Stub in mock_objects.php
socket.php
socket.php in socket.php
SelectiveReporter
Selects the test case or group to be run, and optionally a specific test.
SelectiveReporter
SelectiveReporter in reporter.php
Runs just a single test group, a single case or even a single test within that case.
selectRunnableTests
Calculates the incoming test cases. Skips abstract and ignored classes.
sendMessage
sendNoCacheHeaders
Send the headers necessary to ensure the page is reloaded on every request. Otherwise you could be scratching your head over out of date test data.
setMockBaseClass
setMockBaseClass
setName
Sets the test case/method name.
setReporter
Sets the current reporter. This global instance can be used by the mock objects to send messages.
setTest
Sets the current test case instance. This global instance can be used by the mock objects to send message to the test cases.
setTestCase
Sets the currently running test case.
setUp
SimpleTestCase::setUp() in test_case.php
Sets up unit test wide variables at the start of each test method. To be overridden in actual user test cases.
ShellTestCase
ShellTestCase in shell_tester.php
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.
ShellTestCase
ShellTestCase::ShellTestCase() in shell_tester.php
Creates an empty test case. Should be subclassed with test methods for a functional test case.
shouldInvoke
The reporter has a veto on what should be run.
shouldInvoke
The reporter has a veto on what should be run.
shouldInvoke
The reporter has a veto on what should be run.
shouldInvoke
Veto everything that doesn't match the method wanted.
signal
SimpleTestCase::signal() in test_case.php
SimpleCollector
SimpleCollector in collector.php
The basic collector for GroupTest
SimpleCommandLineParser
Parses raw command line arguments into object properties.
SimpleCommandLineParser
SimpleCommandLineParser in default_reporter.php
Parser for command line arguments. Extracts the a specific test to run and engages XML reporting when necessary.
SimpleDumper
SimpleDumper in dumper.php
Displays variables as text and does diffs.
SimpleErrorQueue
Starts with an empty queue.
SimpleErrorQueue
SimpleErrorQueue in errors.php
Error queue used to record trapped errors.
SimpleErrorTrappingInvoker
Extension that traps errors into an error queue.
SimpleErrorTrappingInvoker
Stores the invoker to wrap.
SimpleExceptionTrap
SimpleExceptionTrap in exceptions.php
Stores expected exceptions for when they get thrown. Saves the irritating try...catch block.
SimpleExceptionTrappingInvoker
Extension that traps exceptions and turns them into an error message. PHP5 only.
SimpleExceptionTrappingInvoker
Stores the invoker to be wrapped.
SimpleExpectation
Creates a dumper for displaying values and sets the test message.
SimpleExpectation
SimpleExpectation in expectation.php
Assertion that can display failure information.
SimpleFileLoader
SimpleFileLoader in test_case.php
Helps to extract test cases automatically from a file.
SimpleInvoker
SimpleInvoker in invoker.php
This is called by the class runner to run a single test method. Will also run the setUp() and tearDown() methods.
SimpleInvoker
Stashes the test case for later.
SimpleInvokerDecorator
Stores the invoker to wrap.
SimpleInvokerDecorator
SimpleInvokerDecorator in invoker.php
Do nothing decorator. Just passes the invocation straight through.
SimplePatternCollector
SimplePatternCollector
SimplePatternCollector in collector.php
An extension to SimpleCollector that only adds files matching a given pattern.
SimpleReflection
SimpleReflection in reflection_php5.php
Version specific reflection API.
SimpleReflection
Stashes the class/interface.
SimpleReporter
SimpleReporter in scorer.php
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.
SimpleReporter
Starts the display with no results in.
SimpleReporterDecorator
Mediates between the reporter and the test case.
SimpleReporterDecorator
For modifying the behaviour of the visual reporters.
SimpleScorer
SimpleScorer in scorer.php
Can receive test events and display them. Display is achieved by making display methods available and visiting the incoming event.
SimpleScorer
Starts the test run with no results.
SimpleShell
SimpleShell in shell_tester.php
Wrapper for exec() functionality.
SimpleShell
SimpleShell::SimpleShell() in shell_tester.php
Executes the shell comand and stashes the output.
SimpleStackTrace
SimpleStackTrace in simpletest.php
Interrogates the stack trace to recover the failure point.
SimpleStackTrace
Stashes the list of target prefixes.
SimpleTest
SimpleTest in simpletest.php
Registry and test context. Includes a few global options that I'm slowly getting rid of.
SimpleTestCase
Sets up the test with no display.
SimpleTestCase
SimpleTestCase in test_case.php
Basic test case. This is the smallest unit of a test suite. It searches for all methods that start with the the string "test" and runs them. Working test cases extend this class.
SimpleTestContext
SimpleTestContext in simpletest.php
Container for all components for a specific
SimpleTestErrorHandler
Error handler that simply stashes any errors into the global error queue. Simulates the existing behaviour with respect to logging errors, but this feature may be removed in future.
SimpleTestOptions
SimpleTestOptions in simpletest.php
SimpleTestXmlParser
Parser for importing the output of the XmlReporter.
SimpleTestXmlParser
Loads a listener with the SimpleReporter interface.
SIMPLE_TEST
SIMPLE_TEST in invoker.php
Includes SimpleTest files and defined the root constant for dependent libraries.
skip
SimpleTestCase::skip() in test_case.php
This is a placeholder for skipping tests. In this method you place skipIf() and skipUnless() calls to set the skipping state.
skipIf
SimpleTestCase::skipIf() in test_case.php
Will issue a message to the reporter and tell the test case to skip if the incoming flag is true.
skipUnless
Will issue a message to the reporter and tell the test case to skip if the incoming flag is false.
swallowErrors
scorer.php
scorer.php in scorer.php
shell_tester.php
shell_tester.php in shell_tester.php
simpletest.php
simpletest.php in simpletest.php
selectAsPairs
Uses a URL to sift relevant cookies by host and path. Results are list of strings of form "name=value".
setBrowser
WebTestCase::setBrowser() in web_tester.php
Gets a current browser reference for setting special expectations or for detailed examination of page fetches.
setConnectionTimeout
Sets the socket timeout for opening a connection.
setConnectionTimeout
Sets the socket timeout for opening a connection.
setConnectionTimeout
Sets the socket timeout for opening a connection and receiving at least one byte of information.
setCookie
Sets an additional cookie. If a cookie has the same name and path it is replaced.
setCookie
Sets an additional cookie. If a cookie has the same name and path it is replaced.
setCookie
WebTestCase::setCookie() in web_tester.php
Sets a cookie in the current browser.
setCookie
Sets an additional cookie. If a cookie has the same name and path it is replaced.
setCoordinates
Sets image coordinates. Set to false to clear them.
setDefaultTarget
Sets the frame target within a frameset.
setField
Sets a field on each form in which the field is available.
setField
Sets all form fields with that name.
setField
Sets a widget value within the form.
setField
WebTestCase::setField() in web_tester.php
Sets all form fields with that label, or name if there is no label attached.
setField
Sets a field on each form in which the field is available.
setFieldById
WebTestCase::setFieldById() in web_tester.php
Sets all form fields with that id.
setFieldById
Sets all form fields with that id attribute.
setFieldByName
Sets all form fields with that name. Will use label if one is available (not yet implemented).
setFieldByName
Sets all form fields with that name.
setFrame
Replaces existing frame with another. If the frame is nested, then the call is passed down one level.
setFrameFocus
Sets the focus by name.
setFrameFocus
Sets the focus by name.
setFrameFocus
Sets the focus by name. Always fails for a leaf page.
setFrameFocus
Sets the focus by name. If already focused and the target frame also has frames, then the nested frame will be focused.
setFrameFocusByIndex
Sets the focus by index. The integer index starts from 1.
setFrameFocusByIndex
Sets the focus by index. The integer index starts from 1.
setFrameFocusByIndex
Sets the focus by index. The integer index starts from 1.
setFrameFocusByIndex
Sets the focus by index. The integer index starts from 1.
setHost
Sets the host. The cookie rules determine
setIdentity
Sets the identity for the current realm.
setIdentity
SimpleRealm::setIdentity() in authentication.php
Sets the identity to try within this realm.
setIdentityForRealm
Sets the current identity to be presented against that realm.
setLabel
Allows setting of a label externally, say by a label tag.
setMaximumNestedFrames
Sets the maximum number of nesting of framed pages within a framed page to prevent loops.
setMaximumRedirects
Sets the maximum number of redirects before the web page is loaded regardless.
setMaximumRedirects
Sets the maximum number of redirects before a page will be loaded anyway.
setMaximumRedirects
Sets the maximum number of redirects before a page will be loaded anyway.
setTarget
Attaches a frame target.
setValue
Can only set allowed values. Any illegal value will result in a failure, but all correct values will be set.
setValue
The only allowed value sn the one in the "value" attribute.
setValue
Each tag is tried in turn until one is successfully set. The others will be unchecked if successful.
setValue
Disables the setting of the button value.
setValue
Does nothing.
setValue
The only allowed value in the one in the "value" attribute. The default for this attribute is "on". If this widget is set to true, then the usual value will be taken.
setValue
Disables the setting of the button value.
setValue
Accessor for current set values.
setValue
Can only set allowed values.
setValue
Disables the setting of the button value.
setValue
Sets the current form element value. Cannot change the value of a hidden field.
setValue
Sets the current form element value.
setValue
Applies word wrapping if needed.
showHeaders
WebTestCase::showHeaders() in web_tester.php
Dumps the current HTTP headers for debugging.
showRequest
WebTestCase::showRequest() in web_tester.php
Dumps the current request for debugging.
showSource
WebTestCase::showSource() in web_tester.php
Dumps the current HTML source for debugging.
showText
WebTestCase::showText() in web_tester.php
Dumps the visible text only for debugging.
SimpleAnchorTag
SimpleAnchorTag in tag.php
Link.
SimpleAnchorTag
Starts with a named tag with attributes only.
SimpleAttachment
SimpleAttachment in encoding.php
Single post parameter.
SimpleAttachment
Stashes the data for rendering later.
SimpleAuthenticator
Clears the realms.
SimpleAuthenticator
SimpleAuthenticator in authentication.php
Manages security realms.
SimpleBaseTag
SimpleBaseTag in tag.php
Base url.
SimpleBaseTag
Starts with a named tag with attributes only.
SimpleBrowser
SimpleBrowser in browser.php
Simulated web browser. This is an aggregate of the user agent, the HTML parsing, request history and the last header set.
SimpleBrowser
Starts with a fresh browser with no cookie or any other state information. The exception is that a default proxy will be set up if specified in the options.
SimpleBrowserHistory
Starts empty.
SimpleBrowserHistory
SimpleBrowserHistory in browser.php
Browser history list.
SimpleButtonTag
Starts with a named tag with attributes only.
SimpleButtonTag
SimpleButtonTag in tag.php
Submit button as button tag.
SimpleById
SimpleById in selector.php
Used to extract form elements for testing against.
SimpleById
SimpleById::SimpleById() in selector.php
Stashes the name for later comparison.
SimpleByLabel
Stashes the name for later comparison.
SimpleByLabel
SimpleByLabel in selector.php
Used to extract form elements for testing against.
SimpleByLabelOrName
Stashes the name/label for later comparison.
SimpleByLabelOrName
SimpleByLabelOrName in selector.php
Used to extract form elements for testing against.
SimpleByName
SimpleByName in selector.php
Used to extract form elements for testing against.
SimpleByName
Stashes the name for later comparison.
SimpleCheckboxGroup
A group of tags with the same name within a form.
SimpleCheckboxTag
Starts with attributes only.
SimpleCheckboxTag
Checkbox widget.
SimpleCookie
SimpleCookie in cookies.php
Cookie data holder. Cookie rules are full of pretty arbitary stuff. I have used...
SimpleCookie
Constructor. Sets the stored values.
SimpleCookieJar
SimpleCookieJar in cookies.php
Repository for cookies. This stuff is a tiny bit browser dependent.
SimpleCookieJar
Constructor. Jar starts empty.
SimpleEncodedPair
SimpleEncodedPair in encoding.php
Single post parameter.
SimpleEncodedPair
Stashes the data for rendering later.
SimpleEncoding
SimpleEncoding in encoding.php
Bundle of GET/POST parameters. Can include repeated parameters.
SimpleEncoding
Starts empty.
SimpleForm
SimpleForm in form.php
Form tag class to hold widget values.
SimpleForm
Starts with no held controls/widgets.
SimpleFormTag
SimpleFormTag in tag.php
Tag to aid parsing the form.
SimpleFormTag
Starts with a named tag with attributes only.
SimpleFrameset
Stashes the frameset page. Will make use of the browser to fetch the sub frames recursively.
SimpleFrameset
SimpleFrameset in frames.php
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.
SimpleFrameTag
SimpleFrameTag in tag.php
Tag to aid parsing the frames in a page.
SimpleFrameTag
Starts with a named tag with attributes only.
SimpleGetEncoding
Starts empty.
SimpleGetEncoding
SimpleGetEncoding in encoding.php
Bundle of GET parameters. Can include repeated parameters.
SimpleHeadEncoding
Starts empty.
SimpleHeadEncoding
SimpleHeadEncoding in encoding.php
Bundle of URL parameters for a HEAD request.
SimpleHtmlLexer
SimpleHtmlLexer in parser.php
Breaks HTML into SAX events.
SimpleHtmlLexer
Sets up the lexer with case insensitive matching and adds the HTML handlers.
SimpleHtmlSaxParser
SimpleHtmlSaxParser in parser.php
Converts HTML tokens into selected SAX events.
SimpleHtmlSaxParser
Sets the listener.
SimpleHttpHeaders
Parses the incoming header block.
SimpleHttpHeaders
SimpleHttpHeaders in http.php
Collection of header lines in the response.
SimpleHttpRequest
Builds the socket request from the different pieces.
SimpleHttpRequest
SimpleHttpRequest in http.php
HTTP request for a web page. Factory for HttpResponse object.
SimpleHttpResponse
Constructor. Reads and parses the incoming content and headers.
SimpleHttpResponse
SimpleHttpResponse in http.php
Basic HTTP response.
SimpleImageSubmitTag
Image button as input tag.
SimpleImageSubmitTag
Starts with a named tag with attributes only.
SimpleLabelTag
Starts with a named tag with attributes only.
SimpleLabelTag
SimpleLabelTag in tag.php
Tag to keep track of labels.
SimpleLexer
Sets up the lexer in case insensitive matching by default.
SimpleLexer
SimpleLexer in parser.php
Accepts text and breaks it into tokens.
SimpleMultipartEncoding
Starts empty.
SimpleMultipartEncoding
SimpleMultipartEncoding in encoding.php
Bundle of POST parameters in the multipart format. Can include file uploads.
SimpleOptionTag
Stashes the attributes.
SimpleOptionTag
SimpleOptionTag in tag.php
Option for selection field.
SimplePage
SimplePage in page.php
A wrapper for a web page.
SimplePage
Parses a page ready to access it's contents.
SimplePageBuilder
SimplePageBuilder in page.php
SAX event handler. Maintains a list of open tags and dispatches them as they close.
SimplePageBuilder
Sets the builder up empty.
SimplePostEncoding
SimplePostEncoding in encoding.php
Bundle of POST parameters. Can include repeated parameters.
SimplePostEncoding
Starts empty.
SimpleProxyRoute
Stashes the proxy address.
SimpleProxyRoute
SimpleProxyRoute in http.php
Creates HTTP headers for the end point of a HTTP request via a proxy server.
SimpleRadioButtonTag
Radio button.
SimpleRadioButtonTag
Stashes the attributes.
SimpleRadioGroup
SimpleRadioGroup in tag.php
A group of tags with the same name within a form.
SimpleRealm
SimpleRealm in authentication.php
Represents a single security realm's identity.
SimpleRealm
SimpleRealm::SimpleRealm() in authentication.php
Starts with the initial entry directory.
SimpleRoute
Sets the target URL.
SimpleRoute
SimpleRoute in http.php
Creates HTTP headers for the end point of a HTTP request.
SimpleSaxListener
SimpleSaxListener in parser.php
SAX event handler.
SimpleSaxListener
Sets the document to write to.
SimpleSecureSocket
Opens a secure socket for reading and writing.
SimpleSecureSocket
SimpleSecureSocket in socket.php
Wrapper for TCP/IP socket over TLS.
SimpleSelectionTag
Drop down widget.
SimpleSelectionTag
Starts with attributes only.
SimpleSocket
Opens a socket for reading and writing.
SimpleSocket
SimpleSocket in socket.php
Wrapper for TCP/IP socket.
SimpleStateStack
SimpleStateStack in parser.php
States for a stack machine.
SimpleStateStack
Constructor. Starts in named state.
SimpleStickyError
SimpleStickyError in socket.php
Stashes an error for later. Useful for constructors until PHP gets exceptions.
SimpleStickyError
Sets the error to empty.
SimpleSubmitTag
SimpleSubmitTag in tag.php
Submit button as input tag.
SimpleSubmitTag
Starts with a named tag with attributes only.
SimpleTag
Starts with a named tag with attributes only.
SimpleTag
SimpleTag in tag.php
HTML or XML tag.
SimpleTagBuilder
SimpleTagBuilder in page.php
Creates tags and widgets given HTML tag attributes.
SimpleTagGroup
SimpleTagGroup in tag.php
A group of multiple widgets with some shared behaviour.
SimpleTextAreaTag
Content tag for text area.
SimpleTextAreaTag
Starts with a named tag with attributes only.
SimpleTextTag
Starts with a named tag with attributes only.
SimpleTextTag
SimpleTextTag in tag.php
Text, password and hidden field.
SimpleTitleTag
SimpleTitleTag in tag.php
Page title.
SimpleTitleTag
Starts with a named tag with attributes only.
SimpleUploadTag
SimpleUploadTag in tag.php
File upload widget.
SimpleUploadTag
Starts with attributes only.
SimpleUrl
SimpleUrl in url.php
URL parser to replace parse_url() PHP function which got broken in PHP 4.3.0. Adds some browser specific functionality such as expandomatics.
SimpleUrl
Constructor. Parses URL into sections.
SimpleUserAgent
Starts with no cookies, realms or proxies.
SimpleUserAgent
SimpleUserAgent in user_agent.php
Fetches web pages whilst keeping track of cookies and authentication.
SimpleWidget
SimpleWidget in tag.php
Form element.
SimpleWidget
Starts with a named tag with attributes only.
startElement
Start of element event.
startElement
Start of element event. Opens a new tag.
stretch
SimpleRealm::stretch() in authentication.php
Adds another location to the realm.
submit
Simply submits the form without the submit button value. Used when there is only one button or it is unimportant.
submitButton
Gets the submit values for a selected button.
submitFormById
Submits a form by the ID.
submitFormById
Submits a form by the ID.
submitImage
Gets the submit values for an image.
selector.php
selector.php in selector.php
t
top
TestCase
TestCase::TestCase() in phpunit_test_case.php
Constructor. Sets the test name.
TestCase
TestCase in phpunit_test_case.php
Adapter for sourceforge PHPUnit test case to allow legacy test cases to be used with SimpleTest.
tally
SimpleMock::tally() in mock_objects.php
test
TrueExpectation::test() in expectation.php
Tests the expectation.
test
Tests the assertion. True if correct.
test
CallCountExpectation::test() in mock_objects.php
Tests the assertion. True if correct.
test
ParametersExpectation::test() in mock_objects.php
Tests the assertion. True if correct.
test
FalseExpectation::test() in expectation.php
Tests the expectation.
test
SimpleSignatureMap::test() in mock_objects.php
Compares the incoming parameters with the internal expectation. Uses the incoming $test to dispatch the test message.
test
FailedExpectation::test() in expectation.php
Tests the expectation. Always false.
test
AnythingExpectation::test() in expectation.php
Tests the expectation. Always true.
test
Tests the assertion. True if correct.
testMessage
Returns a human readable test message.
testMessage
Reports the comparison.
testMessage
Reports the comparison.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Reports the comparison.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
throwAt
SimpleMock::throwAt() in mock_objects.php
Sets up a trigger to throw an exception upon the method call.
throwOn
SimpleMock::throwOn() in mock_objects.php
Sets up a trigger to throw an exception upon the method call.
TrueExpectation
TrueExpectation in expectation.php
An expectation that passes on boolean true.
tally
Any errors still in the queue are sent to the test case. Any unfulfilled expectations trigger failures.
tearDown
Clears the data set in the setUp() method call.
tell
SimpleTestCase::tell() in test_case.php
Sets up an observer for the test end.
test
NotEqualExpectation::test() in expectation.php
Tests the expectation. True if it differs from the held value.
test
Carry out the test.
test
Tests the expectation. True if it matches the held value.
test
Tests the expectation. True if it differs from the held value.
test
Tests the expectation. True if it matches the held value.
test
SimpleExpectation::test() in expectation.php
Tests the expectation. True if correct.
test
ReferenceExpectation::test() in expectation.php
Tests the expectation. True if it exactly references the held value.
test
PatternExpectation::test() in expectation.php
Tests the expectation. True if the Perl regex matches the comparison value.
test
NoPatternExpectation::test() in expectation.php
Tests the expectation. False if the Perl regex matches the comparison value.
test
NotAExpectation::test() in expectation.php
Tests the expectation. False if the type or class matches the string value.
test
IdenticalExpectation::test() in expectation.php
Tests the expectation. True if it exactly matches the held value.
test
EqualExpectation::test() in expectation.php
Tests the expectation. True if it matches the held value.
test
IsAExpectation::test() in expectation.php
Tests the expectation. True if the type or class matches the string value.
test
TextExpectation::test() in web_tester.php
Tests the expectation. True if the text contains the substring.
test
NoTextExpectation::test() in web_tester.php
Tests the expectation. False if the substring appears in the text.
test
Tests the expectation. True if the method exists in the test object.
testDoesNotOutputAnythingOnNoneTestMethods
TestDoxReporter
TestDoxReporter
TestDoxReporter in testdox.php
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.
testEmptyLineInsertedWhenCaseEnds
testIfTest_case_patternIsEmptyAssumeEverythingMatches
testIsAnInstanceOfSimpleScorerAndReporter
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Create the message to display describing the test.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
TestOfTestDoxReporter
Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions.
testOnFailureThisPrintsFailureNotice
testOutputOfTestCaseNameFilteredByConstructParameter
testOutputsNameOfTestCase
testPaintMethodAddLineBreak
testPaintsTestMethodInTestDoxFormat
testProperlySpacesSingleLettersInMethodName
TestSuite
TestSuite::TestSuite() in test_case.php
Sets the name of the test suite.
TestSuite
TestSuite in test_case.php
This is a composite test class for combining test cases and other RunnableTest classes into a group test.
testWhenMatchingMethodNamesTestPrefixIsCaseInsensitive
TextExpectation
TextExpectation in web_tester.php
Test for a text substring.
TextExpectation
Sets the value to compare against.
TextReporter
TextReporter in reporter.php
Sample minimal test displayer. Generates only
TextReporter
Does nothing yet. The first output will be sent on the first test start.
toParsedXml
Converts character string to parsed XML entities string.
traceMethod
Extracts the last method name that was not within Simpletest itself. Captures a stack trace if none given.
TYPE_MATTERS
TYPE_MATTERS in dumper.php
does type matter
test_case.php
test_case.php in test_case.php
test
Tests that the unwanted header is not found.
test
Tests the expectation. True if it matches a string value or an array value in any order.
test
FieldExpectation::test() in web_tester.php
Tests the expectation. True if it matches a string value or an array value in any order.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
testMessage
Returns a human readable test message.
tag.php
tag.php in tag.php
u
top
UnitTestCase
UnitTestCase in unit_tester.php
Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions.
UnitTestCase
UnitTestCase::UnitTestCase() in unit_tester.php
Creates an empty test case. Should be subclassed with test methods for a functional test case.
UnwantedPatternExpectation
UnwantedPatternExpectation in expectation.php
useProxy
useProxy
SimpleTest::useProxy() in simpletest.php
Sets proxy to use on all requests for when testing from behind a firewall. Set host to false to disable. This will take effect if there are no other proxy settings.
unit_tester.php
unit_tester.php in unit_tester.php
unsetBrowser
WebTestCase::unsetBrowser() in web_tester.php
Clears the current browser reference to help the PHP garbage collector.
useCookies
Switches back on the cookie sending and recieving.
useCookies
Switches back on the cookie sending and recieving.
useFrames
Enables frames support. Frames will be fetched from now on.
useProxy
SimpleUserAgent::useProxy() in user_agent.php
Sets proxy to use on all requests for when testing from behind a firewall. Set URL to false to disable.
useProxy
WebTestCase::useProxy() in web_tester.php
Sets proxy to use on all requests for when testing from behind a firewall. Set URL to false to disable.
useProxy
Sets proxy to use on all requests for when testing from behind a firewall. Set URL to false to disable.
url.php
url.php in url.php
user_agent.php
user_agent.php in user_agent.php
w
top
WantedPatternExpectation
WantedPatternExpectation in expectation.php
WithinMarginExpectation
Sets the value to compare against and the fuzziness of the match. Used for comparing floating point values.
WithinMarginExpectation
WithinMarginExpectation in expectation.php
Test for being within a range.
WebTestCase
WebTestCase::WebTestCase() in web_tester.php
Creates an empty test case. Should be subclassed with test methods for a functional test case.
WebTestCase
WebTestCase in web_tester.php
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms.
write
Dispatches the value into the form encoded packet.
write
Dispatches the value into the form encoded packet.
write
Dispatches the value into the form encoded packet.
write
Dispatches the value into the form encoded packet.
write
SimpleSocket::write() in socket.php
Writes some data to the socket and saves alocal copy.
writeCookiesToJar
Writes new cookies to the cookie jar.
writeHeadersTo
Dispatches the form headers down the socket.
writeHeadersTo
Writes no extra headers.
writeHeadersTo
Dispatches the form headers down the socket.
writeTo
Dispatches the form data down the socket.
writeTo
Dispatches the form data down the socket.
writeTo
No data is sent to the socket as the data is encoded into the URL.
web_tester.php
web_tester.php in web_tester.php
x
top
XmlReporter
Sets up indentation and namespace.
XmlReporter
XmlReporter in xml.php
Creates the XML needed for remote communication by SimpleTest.
xml.php
xml.php in xml.php
$ a b c d e f g h i l m n o p r s t u w x _