Class: MemberVariableStub

Represents an object that allows stubbing member variables retrieved.

Constructor

Gets invoked during the stub registration.

init (object{}  mockObject)
  • mockObject object{}
  • Object to register

Methods

thenReturn

Sets the value to be returned when the function is called.

thenReturn

function thenReturn(any | error returnValue)
Isolated Function

Sets the value to be returned when the function is called.

Parameters

  • returnValue any | error
  • Value or error to return