A

AssertClass in namespace Tester

Assertion test helpers.

AssertExceptionClass in namespace Tester

Assertion exception.

$ AssertException#actualProperty in class AssertException
AbstractGeneratorClass in namespace Tester\CodeCoverage\Generators

Code coverage report generator.

$ AbstractGenerator#acceptFilesProperty in class AbstractGenerator
AcceptIteratorClass in namespace Tester\CodeCoverage\Generators
AcceptIterator::accept() — Method in class AcceptIterator
$ HhvmPhpInterpreter#argumentsProperty in class HhvmPhpInterpreter
Runner::addJob() — Method in class Runner

Appends new job to queue.

TestHandler::assess() — Method in class TestHandler
$ ZendPhpInterpreter#argumentsProperty in class ZendPhpInterpreter

B

OutputHandler::begin() — Method in class OutputHandler
ConsolePrinter::begin() — Method in class ConsolePrinter
JUnitPrinter::begin() — Method in class JUnitPrinter
Logger::begin() — Method in class Logger
TapPrinter::begin() — Method in class TapPrinter

C

$ Assert#counterProperty in class Assert
Assert::contains() — Method in class Assert

Checks assertion. Values must contains expected needle.

Assert::count() — Method in class Assert

Checks if subject has expected count.

CollectorClass in namespace Tester\CodeCoverage

Code coverage collector.

CloverXMLGeneratorClass in namespace Tester\CodeCoverage\Generators
$ HtmlGenerator#classesProperty in class HtmlGenerator
DomQuery::css2xpath() — Method in class DomQuery

Transforms CSS expression to XPath.

Dumper::color() — Method in class Dumper

Applies color to string.

$ Environment#checkAssertionsProperty in class Environment
FileMock::create() — Method in class FileMock
CliTesterClass in namespace Tester\Runner

CLI Tester.

CommandLineClass in namespace Tester\Runner

Stupid command line arguments parser.

CommandLine::checkArg() — Method in class CommandLine
ConsolePrinterClass in namespace Tester\Runner\Output

Console printer.

D

$ AbstractGenerator#dataProperty in class AbstractGenerator
DataProviderClass in namespace Tester

Data provider helpers.

DomQueryClass in namespace Tester

DomQuery simplifies querying (X)HTML documents.

DumperClass in namespace Tester

Dumps PHP variables.

$ Dumper#dumpDirProperty in class Dumper
Dumper::dumpException() — Method in class Dumper
$ Environment#debugModeProperty in class Environment

E

Assert::equal() — Method in class Assert

Checks assertion. The identity of objects and the order of keys in the arrays are ignored.

Assert::exception() — Method in class Assert

Checks if the function throws exception.

Assert::error() — Method in class Assert

Checks if the function generates PHP error or throws exception.

$ AssertException#expectedProperty in class AssertException
EnvironmentClass in namespace Tester

Testing environment.

Helpers::errorTypeToString() — Method in class Helpers
Helpers::escapeArg() — Method in class Helpers

Escape a string to be used as a shell argument.

OutputHandler::end() — Method in class OutputHandler
ConsolePrinter::end() — Method in class ConsolePrinter
JUnitPrinter::end() — Method in class JUnitPrinter
Logger::end() — Method in class Logger
TapPrinter::end() — Method in class TapPrinter

F

Assert::false() — Method in class Assert

Checks FALSE assertion.

Assert::falsey() — Method in class Assert

Checks falsey (empty) assertion.

Assert::fail() — Method in class Assert

Failed assertion

DomQuery::fromHtml() — Method in class DomQuery
DomQuery::fromXml() — Method in class DomQuery
DomQuery::find() — Method in class DomQuery

Returns array of descendants filtered by a selector.

FileMockClass in namespace Tester

Mock files.

$ FileMock#filesProperty in class FileMock

G

AbstractGenerator::getSourceIterator() — Method in class AbstractGenerator
Environment::getTestAnnotations() — Method in class Environment

Returns current test annotations.

HhvmPhpInterpreter::getCommandLine() — Method in class HhvmPhpInterpreter
HhvmPhpInterpreter::getVersion() — Method in class HhvmPhpInterpreter
HhvmPhpInterpreter::getErrorOutput() — Method in class HhvmPhpInterpreter
Job::getFile() — Method in class Job

Returns test file path.

Job::getArguments() — Method in class Job

Returns script arguments.

Job::getExitCode() — Method in class Job

Returns exit code.

Job::getOutput() — Method in class Job

Returns test output.

Job::getErrorOutput() — Method in class Job

Returns test error output.

Job::getHeaders() — Method in class Job

Returns output headers.

PhpInterpreter::getCommandLine() — Method in class PhpInterpreter
PhpInterpreter::getVersion() — Method in class PhpInterpreter
PhpInterpreter::getErrorOutput() — Method in class PhpInterpreter
Runner::getJobCount() — Method in class Runner

Get count of jobs.

Runner::getInterpreter() — Method in class Runner
Runner::getResults() — Method in class Runner
ZendPhpInterpreter::getCommandLine() — Method in class ZendPhpInterpreter
ZendPhpInterpreter::getVersion() — Method in class ZendPhpInterpreter
ZendPhpInterpreter::getErrorOutput() — Method in class ZendPhpInterpreter
TestCase::getData() — Method in class TestCase

H

HtmlGeneratorClass in namespace Tester\CodeCoverage\Generators

Code coverage report generator.

DomQuery::has() — Method in class DomQuery

Check the current document against a selector.

Environment::handleException() — Method in class Environment
HelpersClass in namespace Tester

Test helpers.

CommandLine::help() — Method in class CommandLine
HhvmPhpInterpreterClass in namespace Tester\Runner

HHVM command-line executable.

HhvmPhpInterpreter::hasXdebug() — Method in class HhvmPhpInterpreter
PhpInterpreter::hasXdebug() — Method in class PhpInterpreter
ZendPhpInterpreter::hasXdebug() — Method in class ZendPhpInterpreter

I

Assert::isMatching() — Method in class Assert

Compares using mask.

Assert::isEqual() — Method in class Assert

Compares two structures. Ignores the identity of objects and the order of keys in the arrays.

CommandLine::isEmpty() — Method in class CommandLine
HhvmPhpInterpreter::isCgi() — Method in class HhvmPhpInterpreter
Job::isRunning() — Method in class Job

Checks if the test is still running.

PhpInterpreter::isCgi() — Method in class PhpInterpreter
TestHandler::initiate() — Method in class TestHandler
ZendPhpInterpreter::isCgi() — Method in class ZendPhpInterpreter

J

JobClass in namespace Tester\Runner

Single test job.

JUnitPrinterClass in namespace Tester\Runner\Output

JUnit xml format printer.

L

DataProvider::load() — Method in class DataProvider
Environment::lock() — Method in class Environment

Locks the parallel tests.

Environment::loadData() — Method in class Environment

Loads data according to the file annotation or specified by Tester\Runner\TestHandler::initiateDataProvider()

LoggerClass in namespace Tester\Runner\Output

Verbose logger.

M

Assert::match() — Method in class Assert

Compares result using regular expression or mask: %a% one or more of anything except the end of line characters %a?% zero or more of anything except the end of line characters %A% one or more of anything including the end of line characters %A?% zero or more of anything including the end of line characters %s% one or more white space characters except the end of line characters %s?% zero or more white space characters except the end of line characters %S% one or more of characters except the white space %S?% zero or more of characters except the white space %c% a single character of any sort (except the end of line) %d% one or more digits %d?% zero or more digits %i% signed integer value %f% floating point number %h% one or more HEX digits

Assert::matchFile() — Method in class Assert

Compares results using mask sorted in file.

$ Dumper#maxLengthProperty in class Dumper
$ Dumper#maxDepthProperty in class Dumper
$ Dumper#maxPathSegmentsProperty in class Dumper

N

Assert::notSame() — Method in class Assert

Checks assertion. Values must not be exactly the same.

Assert::notEqual() — Method in class Assert

Checks assertion. The identity of objects and the order of keys in the arrays are ignored.

Assert::notContains() — Method in class Assert

Checks assertion. Values must not contains expected needle.

Assert::null() — Method in class Assert

Checks NULL assertion.

Assert::nan() — Method in class Assert

Checks Not a Number assertion.

Assert::noError() — Method in class Assert

Checks that the function does not generate PHP error and does not throw exception.

O

$ Assert#onFailureProperty in class Assert
$ AssertException#origMessageProperty in class AssertException
OutputHandlerClass in namespace Tester\Runner

Runner output.

$ Runner#outputHandlersProperty in class Runner

P

$ Assert#patternsProperty in class Assert

used by match(); in values, each $ followed by number is backreference

PhpParserClass in namespace Tester\CodeCoverage

Parses PHP source code and returns:

  • the start/end line information about functions, classes, interfaces, traits and their methods
  • the count of code lines
  • the count of commented code lines
PhpParser::parse() — Method in class PhpParser
DataProvider::parseAnnotation() — Method in class DataProvider
Helpers::purge() — Method in class Helpers

Purges directory.

Helpers::parseDocComment() — Method in class Helpers

Parse phpDoc comment.

CommandLine::parse() — Method in class CommandLine
PhpInterpreterClass in namespace Tester\Runner
$ Runner#pathsProperty in class Runner

R

AbstractGenerator::render() — Method in class AbstractGenerator
AbstractGenerator::renderSelf() — Method in class AbstractGenerator
CloverXMLGenerator::renderSelf() — Method in class CloverXMLGenerator
HtmlGenerator::renderSelf() — Method in class HtmlGenerator
Dumper::removeColors() — Method in class Dumper
CliTester::run() — Method in class CliTester
Job::run() — Method in class Job

Runs single test.

OutputHandler::result() — Method in class OutputHandler
ConsolePrinter::result() — Method in class ConsolePrinter
JUnitPrinter::result() — Method in class JUnitPrinter
Logger::result() — Method in class Logger
TapPrinter::result() — Method in class TapPrinter
RunnerClass in namespace Tester\Runner

Test runner.

Runner::run() — Method in class Runner

Runs all tests.

TestCase::run() — Method in class TestCase

Runs the test case.

TestCase::runTest() — Method in class TestCase

Runs the test method.

S

Assert::same() — Method in class Assert

Checks assertion. Values must be exactly the same.

AssertException::setMessage() — Method in class AssertException
Collector::start() — Method in class Collector

Starts gathering the information for code coverage.

Collector::save() — Method in class Collector

Saves information about code coverage. Do not call directly.

$ AbstractGenerator#sourceProperty in class AbstractGenerator
Dumper::saveOutput() — Method in class Dumper

Dumps data to folder 'output'.

Environment::setup() — Method in class Environment

Configures testing environment.

Environment::setupColors() — Method in class Environment

Configures colored output.

Environment::setupErrors() — Method in class Environment

Configures PHP error handling.

Environment::skip() — Method in class Environment

Skips this test.

FileMock::stream_open() — Method in class FileMock
FileMock::stream_read() — Method in class FileMock
FileMock::stream_write() — Method in class FileMock
FileMock::stream_tell() — Method in class FileMock
FileMock::stream_eof() — Method in class FileMock
FileMock::stream_seek() — Method in class FileMock
FileMock::stream_truncate() — Method in class FileMock
FileMock::stream_stat() — Method in class FileMock
FileMock::stream_lock() — Method in class FileMock
$ Runner#stopOnFailProperty in class Runner
TestCase::setUp() — Method in class TestCase

This method is called before a test is executed.

T

Assert::true() — Method in class Assert

Checks TRUE assertion.

Assert::truthy() — Method in class Assert

Checks truthy assertion.

Assert::type() — Method in class Assert

Checks assertion.

Assert::throws() — Method in class Assert

Checks if the function throws exception, alias for exception().

DataProvider::testQuery() — Method in class DataProvider
Dumper::toLine() — Method in class Dumper

Dumps information about a variable in readable format.

Dumper::toPhp() — Method in class Dumper

Dumps variable in PHP format.

TapPrinterClass in namespace Tester\Runner\Output

Test Anything Protocol, http://testanything.org

$ Runner#threadCountProperty in class Runner
$ Runner#testHandlerProperty in class Runner
TestHandlerClass in namespace Tester\Runner

Default test behavior.

TestCaseClass in namespace Tester

Single test case.

TestCase::tearDown() — Method in class TestCase

This method is called after a test is executed.

TestCaseExceptionClass in namespace Tester

U

$ Environment#useColorsProperty in class Environment
FileMock::url_stat() — Method in class FileMock

W

Assert::with() — Method in class Assert
Runner::writeResult() — Method in class Runner

Writes to output handlers.

Z

ZendPhpInterpreterClass in namespace Tester\Runner

Zend PHP command-line executable.

_

AssertException::__construct() — Method in class AssertException
AbstractGenerator::__construct() — Method in class AbstractGenerator
AcceptIterator::__construct() — Method in class AcceptIterator
CloverXMLGenerator::__construct() — Method in class CloverXMLGenerator
HtmlGenerator::__construct() — Method in class HtmlGenerator
CommandLine::__construct() — Method in class CommandLine
HhvmPhpInterpreter::__construct() — Method in class HhvmPhpInterpreter
Job::__construct() — Method in class Job
ConsolePrinter::__construct() — Method in class ConsolePrinter
JUnitPrinter::__construct() — Method in class JUnitPrinter
Logger::__construct() — Method in class Logger
TapPrinter::__construct() — Method in class TapPrinter
Runner::__construct() — Method in class Runner
TestHandler::__construct() — Method in class TestHandler
ZendPhpInterpreter::__construct() — Method in class ZendPhpInterpreter