Testbox Mockbox

Use this skill when creating mocks, stubs, and spies in TestBox using MockBox: createMock(), createEmptyMock(), prepareMock(), stubbing methods with $(), chaining $args()/$results()/$throws() (including order-independent struct matching and BoxLang Set/Range arguments), verifying call counts with $once()/$never()/$times()/$atLeast()/$atMost(), reading call logs with $callLog(), injecting mock properties with $property(), simulating queries with querySim(), or spying on real methods with $spy().

ColdBox Updated 0 repo stars

File contents

coldbox/skills commit 2c4c9acbeb

Frequently asked questions

npx get-skill add coldbox/testbox-mockbox