[Testbox 2.0.0] xUnit compatibility CF9 broken

Today I switched to testbox 2.0.0 and noticed that compatibilty with CF9 is broken. The docs still claim CF 9.01 for xUnit.

Actually just a little thing …It’s in the assertation library Assertation.cfc at line 794

if( isCustomFunction( arguments.target ) or isClosure( arguments.target ) ){
throw( type=“InvalidType”, message=“You sent an invalid type for length checking (closure/function)” );

}

I removed “or isClosure( arguments.target )” because CF9 don’t know the “isClosure()” function… and it worked fine again.

Daniel

Can you put in a ticket for this that includes a test that will cause the error.? We’ll probably need to put in a UDF for that check that looks at your CF version number.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com