/** * @expectedException FunctionWasNotMockedException * @expectedExceptionMessage nonExistentMock was not mocked. */ public function testVerifyMockCalledForNonExistingMock() { $actualResult = FunctionMock::verifyMockTimesCalled('nonExistentMock'); }
/** * Resets all the mocks. */ public static function resetMocks() { // Just empty the array. self::$mockStates = array(); }