Skip to content

Instantly share code, notes, and snippets.

@awagner83
Created October 6, 2011 18:21
Show Gist options
  • Save awagner83/1268179 to your computer and use it in GitHub Desktop.
Save awagner83/1268179 to your computer and use it in GitHub Desktop.
Generate ridiculous php files to test docblock runtimes
templates = {
"docblock": """
/**
* My Docblock
*/
class MyClass%s {}
""",
"nodocblock": """
/*-
* My Docblock
*/
class MyClass%s {}
"""
}
for name, template in templates.iteritems():
template_handle = open("%s.php" % name, 'a')
template_handle.write("<?php\n")
for x in range(50000):
template_handle.write(template % x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment