Overview

A single unit test.

Package

This class is part of the Solar_Test package.

Inheritance:

Configuration Keys

None.

Constants

Public Properties

The Solar_Test class has no public properties; try the list of all properties.

Public Methods

These are all the public methods in the Solar_Test class.

You can also view the list of all public, protected, and private methods.

__construct()

Constructor.

__destruct()

Teardown after the entire unit test.

assertEquals()

Asserts that two variables are equal; type is not strict.

assertFalse()

Asserts that a variable is boolean false.

assertInstance()

Asserts that a object is an instance of a class.

assertNotEquals()

Asserts that two variables are not equal; type is not strict.

assertNotFalse()

Asserts that a variable is not boolean false.

assertNotInstance()

Asserts that a object is not an instance of a class.

assertNotNull()

Asserts that a variable is not PHP null.

assertNotRegex()

Asserts that a value does not match a regular expression pattern using » preg_match().

assertNotSame()

Asserts that two variables are not the same type and value.

assertNotTrue()

Asserts that a variable is not boolean true.

assertNull()

Asserts that a variable is PHP null.

assertProperty()

Asserts that an object property meets criteria.

assertRegex()

Asserts that a value matches a regular expression pattern using » preg_match().

assertSame()

Asserts that two variables have the same type and value.

assertTrue()

Asserts that a variable is boolean true.

diag()

Prints diagnostic output.

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

error()

Error handler for this test; throws a test failure.

fail()

Throws an exception indicating a failed test.

getAssertCount()

Returns the number of assertions made by this test.

locale()

Looks up class-specific locale strings based on a key.

postTest()

Runs after each test method; used for restoring state.

preTest()

Runs before each test method; used for preparing state.

resetAssertCount()

Resets the assertion counter to zero.

skip()

Throws an exception indicating a skipped test.

todo()

Throws an exception indicating an incomplete test.



Local