Object - test : MemberVariableStub

Represents an object that allows stubbing member variables retrieved.

Constructor

Gets invoked during the stub registration



__init

(T15 mockObject)

  • mockObject T15
  • 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