TestBox : Behavior Driven Development (BDD)
v4.x
Search
⌃K
v4.x
Introduction
Intro
Release History
About This Book
Getting Started
Overview
Installation
Primers
TestBox BDD Primer
TestBox xUnit Primer
In-Depth
Testing Styles
Test Bundles
Life-Cycle Methods
Suites, Tests & Specs (Oh My!)
Assertions
Expectations
Output Utilities
Running Tests
Reporters
MXUnit Compatibility
Mocking
MockBox
What is Mocking?
Our Approach and Benefits
Creating MockBox
Creating a Mock Object
Creating a Stub Object
Mocking Methods
Verification Methods
$count()
$times() or $verifyCallCount()
$never()
$atLeast()
$once()
$atMost()
$callLog()
$reset()
$debug()
Some Examples
Conclusion
Mocking Data
Code Coverage
Introduction
Running Code Coverage
Configuring Code Coverage
Known Behaviors
Continuous Integration
Introduction
Github Actions
Gitlab
Travis
Powered By GitBook

$debug()

This method is used for debugging purposes. If you would like to get a structure of all the mocking internals of an object, just call this method and it will return to you a structure of data that you can dump for debugging purposes.
<cfdump var="#targetObject.$debug()#">
Previous
$reset()
Next
Some Examples
Last modified 4yr ago
Copy link
Edit on GitHub