At runtime, TestBox will inject several public variables into your testing bundle CFCs to help you with your testing:
$mockbox : A reference to MockBox
$mockbox
$assert : A reference to our Assertions library
$assert
$utility : A utility CFC
$utility
$customMatchers : A collection of custom matchers registered
$customMatchers
$exceptionAnnotation : The annotation used to discover expected exceptions, defaults to expectedException
$exceptionAnnotation
$testID : A unique identifier for the test bundle
$testID
$debugBuffer : The debugging buffer stream
$debugBuffer
Last updated 7 years ago
Was this helpful?