PHP Class lithium\tests\mocks\test\MockUnitTest

Inheritance: extends lithium\test\Unit
Afficher le fichier Open project: unionofrad/lithium Class Usage Examples

Méthodes publiques

Méthode Description
compare ( $type, $expected, $result = null, $trace = null )
expected ( )
handleException ( $exception, $lineFlag = null )
prepareTestExpectExceptionNotThrown ( ) This method is used in a test to prepare it.
testNothing ( )
testSomething ( ) This method is used in a test and is *line sensitive*. The corresponding test's expectations needs to be adapted if the line of the assert() call changes.

Method Details

compare() public méthode

public compare ( $type, $expected, $result = null, $trace = null )

expected() public méthode

public expected ( )

handleException() public méthode

public handleException ( $exception, $lineFlag = null )

prepareTestExpectExceptionNotThrown() public méthode

This method is used in a test to prepare it.
See also: lithium\tests\cases\test\UnitTest::testExpectExceptionNotThrown()

testNothing() public méthode

public testNothing ( )

testSomething() public méthode

This method is used in a test and is *line sensitive*. The corresponding test's expectations needs to be adapted if the line of the assert() call changes.
See also: lithium\tests\cases\test\UnitTest::testAssertBacktraces()
public testSomething ( )