PHP Class Jamm\Tester\ClassTest

Show file Open project: jamm/memory

Public Methods

Method Description
RunTests ( )
assertEquals ( $tested_value, $expected_value, $strict = false )
assertInstanceOf ( $tested_object, $expected_class_name )
assertIsArray ( $array )
assertIsNumeric ( $numeric )
assertIsObject ( $value )
assertIsScalar ( $value )
assertIsValueOfType ( $value, $type )
assertTrue ( $variable )
assertTrueStrict ( $variable )
getTests ( )
setTestMethodPrefix ( $test_method_prefix )
setUpBeforeClass ( )
skipAllExcept ( string | array $method_names )
skipAllExceptLast ( )
skipTest ( $method_names )
tearDownAfterClass ( )

Protected Methods

Method Description
RunAllTestsOfClass ( )
assertPostConditions ( )
assertPreConditions ( )
getErrorCatcherObject ( ) : ErrorCatcher
getNewAssertionObject ( )
getNewTestObject ( ) : Test
onNotSuccessfulTest ( )
setErrorExpected ( $value )
setExceptionExpected ( $value )
setUp ( )
tearDown ( )

Private Methods

Method Description
RunTestMethod ( $test_method_name )
addAssertionToCurrentTest ( Assertion $assertion )
assert ( $expression ) : Assertion Each assert* method should call this function
resetErrorsExpectations ( )
start_new_test ( $name )

Method Details

RunAllTestsOfClass() protected method

protected RunAllTestsOfClass ( )

RunTests() public method

public RunTests ( )

assertEquals() public method

public assertEquals ( $tested_value, $expected_value, $strict = false )

assertInstanceOf() public method

public assertInstanceOf ( $tested_object, $expected_class_name )

assertIsArray() public method

public assertIsArray ( $array )

assertIsNumeric() public method

public assertIsNumeric ( $numeric )

assertIsObject() public method

public assertIsObject ( $value )

assertIsScalar() public method

public assertIsScalar ( $value )

assertIsValueOfType() public method

public assertIsValueOfType ( $value, $type )

assertPostConditions() protected method

protected assertPostConditions ( )

assertPreConditions() protected method

protected assertPreConditions ( )

assertTrue() public method

public assertTrue ( $variable )

assertTrueStrict() public method

public assertTrueStrict ( $variable )

getErrorCatcherObject() protected method

protected getErrorCatcherObject ( ) : ErrorCatcher
return ErrorCatcher

getNewAssertionObject() protected method

protected getNewAssertionObject ( )

getNewTestObject() protected method

protected getNewTestObject ( ) : Test
return Test

getTests() public method

public getTests ( )

onNotSuccessfulTest() protected method

protected onNotSuccessfulTest ( )

setErrorExpected() protected method

protected setErrorExpected ( $value )

setExceptionExpected() protected method

protected setExceptionExpected ( $value )

setTestMethodPrefix() public method

public setTestMethodPrefix ( $test_method_prefix )

setUp() protected method

protected setUp ( )

setUpBeforeClass() public method

public setUpBeforeClass ( )

skipAllExcept() public method

public skipAllExcept ( string | array $method_names )
$method_names string | array

skipAllExceptLast() public method

public skipAllExceptLast ( )

skipTest() public method

public skipTest ( $method_names )

tearDown() protected method

protected tearDown ( )

tearDownAfterClass() public method

public tearDownAfterClass ( )