For the complete documentation index, see llms.txt. This page is also available as Markdown.

Injected Variables

At runtime, TestBox will inject several public variables into your testing bundle CFCs to help you with your testing:

  • $mockbox : A reference to MockBox

  • $assert : A reference to our Assertions library

  • $utility : A utility CFC

  • $customMatchers : A collection of custom matchers registered

  • $exceptionAnnotation : The annotation used to discover expected exceptions, defaults to expectedException

  • $testID : A unique identifier for the test bundle

  • $debugBuffer : The debugging buffer stream

Last updated

Was this helpful?