I'm not sure how to get the full stack trace or tag context, but the component and line number are:
Here's a test case.
component extends="coldbox.system.testing.BaseTestCase" {
public void function testFoo() {
local.myModel = variables.mockBox.createMock("model.myModel");
local.myModel.$("bar");
// file (it just expects something binary, so we'll mock away)
local.file = toBinary(toBase64("Open the pod bay doors, Hal!"));
local.myModel.foo(local.file); // here's where the wheels come off
}
}
And the actual cfc I'm writing the test for (model/myModel):
component
{
public function foo(
required binary file
) {
// do some stuff
local.result = bar(arguments.file);
// do other stuff
}
public function bar(
required binary file
) {
// do things
}
}