Index
A
- Assert — Class in namespace Tester
Assertion test helpers.
- AssertException — Class in namespace Tester
Assertion exception.
- $ AssertException#actual — Property in class AssertException
- AbstractGenerator — Class in namespace Tester\CodeCoverage\Generators
Code coverage report generator.
- $ AbstractGenerator#acceptFiles — Property in class AbstractGenerator
- AcceptIterator — Class in namespace Tester\CodeCoverage\Generators
- AcceptIterator::accept() — Method in class AcceptIterator
- $ HhvmPhpInterpreter#arguments — Property in class HhvmPhpInterpreter
- Runner::addJob() — Method in class Runner
Appends new job to queue.
- TestHandler::assess() — Method in class TestHandler
- $ ZendPhpInterpreter#arguments — Property 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#counter — Property 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.
- Collector — Class in namespace Tester\CodeCoverage
Code coverage collector.
- CloverXMLGenerator — Class in namespace Tester\CodeCoverage\Generators
- $ HtmlGenerator#classes — Property 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#checkAssertions — Property in class Environment
- FileMock::create() — Method in class FileMock
- CliTester — Class in namespace Tester\Runner
CLI Tester.
- CommandLine — Class in namespace Tester\Runner
Stupid command line arguments parser.
- CommandLine::checkArg() — Method in class CommandLine
- ConsolePrinter — Class in namespace Tester\Runner\Output
Console printer.
D
- $ AbstractGenerator#data — Property in class AbstractGenerator
- DataProvider — Class in namespace Tester
Data provider helpers.
- DomQuery — Class in namespace Tester
DomQuery simplifies querying (X)HTML documents.
- Dumper — Class in namespace Tester
Dumps PHP variables.
- $ Dumper#dumpDir — Property in class Dumper
- Dumper::dumpException() — Method in class Dumper
- $ Environment#debugMode — Property 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#expected — Property in class AssertException
- Environment — Class 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.
- FileMock — Class in namespace Tester
Mock files.
- $ FileMock#files — Property 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
- HtmlGenerator — Class 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
- Helpers — Class in namespace Tester
Test helpers.
- CommandLine::help() — Method in class CommandLine
- HhvmPhpInterpreter — Class 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
- Job — Class in namespace Tester\Runner
Single test job.
- JUnitPrinter — Class 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()
- Logger — Class 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#maxLength — Property in class Dumper
- $ Dumper#maxDepth — Property in class Dumper
- $ Dumper#maxPathSegments — Property 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.
O
- $ Assert#onFailure — Property in class Assert
- $ AssertException#origMessage — Property in class AssertException
- OutputHandler — Class in namespace Tester\Runner
Runner output.
- $ Runner#outputHandlers — Property in class Runner
P
- $ Assert#patterns — Property in class Assert
used by match(); in values, each $ followed by number is backreference
- PhpParser — Class 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
- PhpInterpreter — Class in namespace Tester\Runner
- $ Runner#paths — Property 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
- Runner — Class 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 single test.
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#source — Property 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#stopOnFail — Property 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.
- TapPrinter — Class in namespace Tester\Runner\Output
Test Anything Protocol, http://testanything.org
- $ Runner#threadCount — Property in class Runner
- $ Runner#testHandler — Property in class Runner
- TestHandler — Class in namespace Tester\Runner
Default test behavior.
- TestCase — Class in namespace Tester
Single test case.
- TestCase::tearDown() — Method in class TestCase
This method is called after a test is executed.
- TestCaseException — Class in namespace Tester
U
- $ Environment#useColors — Property 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
- ZendPhpInterpreter — Class 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