Object - test : MemberVariableStub

Represents an object that allows stubbing member variables retrieved.

Constructor

__init

(T20 mockObject)

  • mockObject T20
  • object to register

Methods

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

thenReturn

(any | error returnValue)

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

Parameters

  • returnValue any | error
  • value or error to return