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
FileMutator::addMutator() — Method in class FileMutator
Runner::addJob() — Method in class Runner

Appends new job to queue.

TestHandler::assess() — Method in class TestHandler

B

Environment::bypassFinals() — Method in class Environment

Removes keyword final from source codes.

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.

$ AbstractGenerator#coveredSumProperty in class AbstractGenerator
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
$ FileMutator#contextProperty in class FileMutator
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.

PhpInterpreter::canMeasureCodeCoverage() — Method in class PhpInterpreter

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
FileMutator::dir_closedir() — Method in class FileMutator
FileMutator::dir_opendir() — Method in class FileMutator
FileMutator::dir_readdir() — Method in class FileMutator
FileMutator::dir_rewinddir() — Method in class FileMutator

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.

Assert::expandMatchingPatterns() — Method in class Assert
$ 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

Collector::flush() — Method in class Collector

Flushes all gathered information. Effective only with PHPDBG collector.

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
FileMutatorClass in namespace Tester

PHP file mutator.

OutputHandler::finish() — Method in class OutputHandler
ConsolePrinter::finish() — Method in class ConsolePrinter
JUnitPrinter::finish() — Method in class JUnitPrinter
Logger::finish() — Method in class Logger
TapPrinter::finish() — Method in class TapPrinter
Runner::finishTest() — Method in class Runner

Writes to output handlers.

G

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

Returns current test annotations.

Job::getEnvironmentVariable() — Method in class Job
Job::getTest() — Method in class Job
Job::getExitCode() — Method in class Job

Returns exit code.

Job::getHeaders() — Method in class Job

Returns output headers.

PhpInterpreter::getCommandLine() — Method in class PhpInterpreter
PhpInterpreter::getVersion() — Method in class PhpInterpreter
PhpInterpreter::getStartupError() — Method in class PhpInterpreter
PhpInterpreter::getShortInfo() — Method in class PhpInterpreter
Runner::getEnvironmentVariables() — Method in class Runner
Runner::getInterpreter() — Method in class Runner
Test::getFile() — Method in class Test
Test::getArguments() — Method in class Test
Test::getSignature() — Method in class Test
Test::getResult() — Method in class Test
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
PhpInterpreter::hasExtension() — Method in class PhpInterpreter
Test::hasResult() — Method in class Test

I

Assert::isMatching() — Method in class Assert

Compares using mask.

Collector::isStarted() — Method in class Collector
CommandLine::isEmpty() — Method in class CommandLine
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

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
FileMutator::mkdir() — Method in class FileMutator
$ Test#messageProperty in class Test

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

Returned structure is: stdClass { linesOfCode: int, linesOfComments: int, functions: [functionName => $functionInfo], classes: [className => $info], traits: [traitName => $info], interfaces: [interfaceName => $info], }

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
OutputHandler::prepare() — Method in class OutputHandler
ConsolePrinter::prepare() — Method in class ConsolePrinter
JUnitPrinter::prepare() — Method in class JUnitPrinter
Logger::prepare() — Method in class Logger
TapPrinter::prepare() — Method in class TapPrinter
PhpInterpreterClass in namespace Tester\Runner

PHP command-line executable.

$ Runner#pathsProperty in class Runner
Runner::prepareTest() — Method 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
FileMock::register() — Method in class FileMock
FileMutator::rename() — Method in class FileMutator
FileMutator::rmdir() — Method in class FileMutator
CliTester::run() — Method in class CliTester
Job::run() — Method in class Job

Runs single test.

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. Can be called repeatedly to free memory.

$ AbstractGenerator#sourcesProperty 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
FileMutator::stream_cast() — Method in class FileMutator
FileMutator::stream_close() — Method in class FileMutator
FileMutator::stream_eof() — Method in class FileMutator
FileMutator::stream_flush() — Method in class FileMutator
FileMutator::stream_lock() — Method in class FileMutator
FileMutator::stream_metadata() — Method in class FileMutator
FileMutator::stream_open() — Method in class FileMutator
FileMutator::stream_read() — Method in class FileMutator
FileMutator::stream_seek() — Method in class FileMutator
FileMutator::stream_set_option() — Method in class FileMutator
FileMutator::stream_stat() — Method in class FileMutator
FileMutator::stream_tell() — Method in class FileMutator
FileMutator::stream_truncate() — Method in class FileMutator
FileMutator::stream_write() — Method in class FileMutator
Job::setEnvironmentVariable() — Method in class Job
$ Runner#stopOnFailProperty in class Runner
Runner::setEnvironmentVariable() — Method in class Runner
Runner::setTempDirectory() — Method in class Runner
$ Test#stdoutProperty in class Test
$ Test#stderrProperty in class Test
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().

$ AbstractGenerator#totalSumProperty in class AbstractGenerator
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
TestClass in namespace Tester\Runner

Test represents one result.

$ Test#titleProperty in class Test
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
FileMock::unlink() — Method in class FileMock
FileMutator::unlink() — Method in class FileMutator
FileMutator::url_stat() — Method in class FileMutator

W

Assert::with() — Method in class Assert
PhpInterpreter::withPhpIniOption() — Method in class PhpInterpreter
Test::withArguments() — Method in class Test
Test::withResult() — Method in class Test

_

AssertException::__construct() — Method in class AssertException
AbstractGenerator::__construct() — Method in class AbstractGenerator
CloverXMLGenerator::__construct() — Method in class CloverXMLGenerator
HtmlGenerator::__construct() — Method in class HtmlGenerator
CommandLine::__construct() — Method in class CommandLine
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
PhpInterpreter::__construct() — Method in class PhpInterpreter
Runner::__construct() — Method in class Runner
Test::__construct() — Method in class Test
TestHandler::__construct() — Method in class TestHandler