I think I need to test for a return type of boolean as a first test. How would I do this?
for any method that returns a boolean such as
public boolean function isValid( required numeric id ) {
// returns 'true' if data is valid, 'false' if data is not valid
}
there are; assertIsQuery and assertIsStruct ... I think I'm looking for something like assertIsBoolean and since there isn't that method, the closest is
assertIsTypeOf
but I do not know what syntax to use to test boolean 'type' - and is seems as though test assertTrue or assertFalse are not what I'm looking for.