Skip to content

Instantly share code, notes, and snippets.

@bittersweetryan
Created January 16, 2012 13:57
Show Gist options
  • Save bittersweetryan/1620993 to your computer and use it in GitHub Desktop.
Save bittersweetryan/1620993 to your computer and use it in GitHub Desktop.
Blog Post - Ordered Test Decorator
<cfscript> //ignore, just here to get syntax coloring
/**
*@order 1
*/
public void function testIfVariableExists() {
assertEquals(isDefined("someVariableWithALongName") ,"__");
}
/**
*@order 2
*/
public void function testIfAVariableExists(){
//the isdefined function will tell you if a variable exists or not
assertEquals(isDefined("foo"),"__");
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment