Object - test : MemberVariableStub

Represents an object that allows stubbing member variables retrieved.

Constructor

__init

(object { } mockObject)

  • mockObject object { }
  • 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