diff --git a/framework/decorators/OrderedTestDecorator.cfc b/framework/decorators/OrderedTestDecorator.cfc index 2d86412..043d458 100644 --- a/framework/decorators/OrderedTestDecorator.cfc +++ b/framework/decorators/OrderedTestDecorator.cfc @@ -5,13 +5,13 @@ var methods = getTarget().getRunnableMethods(); var i = 1; var order = 0; - var tests = []; + var tests = arrayNew(1); var test = ""; var BubbleSort = createObject("Component","mxunit.utils.BubbleSort"); var sortedTests = arrayNew(1); var returnArray = arrayNew(1); - for(i = 1; i LTE arrayLen(methods); i++){ + for(i = 1; i LTE arrayLen(methods); i = i + 1){ test = structNew(); test.order = getAnnotation(methods[i],"order"); test.name = methods[i];