| Issue 126: | assertIsTypeOf doesn't consider parents | |
| 1 person starred this issue and may be notified of changes. | Back to list |
drop this into any test case: <cffunction name="testistypeof" returntype="void" hint=""> <cfset assertIsTypeOf(this,"mxunit.framework.TestCase")> </cffunction> this should work because my current cfc extends mxunit.framework.testcase, but i get an error that it's not.
Jul 8, 2008
Project Member
#1
virtix
Jul 8, 2008
yeah, i'd say that is correct. unless you add a "strict" argument where it only considers its immediate type and not its inheritance tree. but i'd think that any test case would, indeed, be of type assert, too. that inheritance tree sure is funky though!
Jul 8, 2008
Ok. That was fun, really. Used a little recursive function to walk up the inheritance tree in the meta data struct. So, mxunit.tests.bug. bug126 works as expected in typical and atypical scenarios.
Status:
Fixed
|