Method | Description | |
---|---|---|
assertCalledOnce ( FBMock_Mock $mock, $method_name, $args = null, $msg = '' ) | Assert that the method was called once. If $args is given, check that it matches the args $method_name was called with. | |
assertCalls ( FBMock_Mock $mock, $method_name ) | Assert that the method calls match the array of calls. | |
assertNotCalled ( FBMock_Mock $mock, $method_name, $msg = '' ) | Assert that the method was not called. | |
assertNumCalls ( FBMock_Mock $mock, $method_name, $expected_num_calls, $msg = '' ) | Assert that the method was called a certain number of times on a mock |
public static assertCalledOnce ( FBMock_Mock $mock, $method_name, $args = null, $msg = '' ) | ||
$mock | FBMock_Mock | a mock object |
$method_name | name of method to check | |
$args | expected arguments (optional) | |
$msg | message for assert (optional) |
public static assertCalls ( FBMock_Mock $mock, $method_name ) | ||
$mock | FBMock_Mock | a mock object |
$method_name | name of method to check |
public static assertNotCalled ( FBMock_Mock $mock, $method_name, $msg = '' ) | ||
$mock | FBMock_Mock | a mock object |
$method_name | name of method to check | |
$msg | message for assert (optional) |
public static assertNumCalls ( FBMock_Mock $mock, $method_name, $expected_num_calls, $msg = '' ) | ||
$mock | FBMock_Mock | a mock object |
$method_name | name of method to check | |
$expected_num_calls | expected number of calls | |
$msg | message for assert (optional) |