Skip to content

Instantly share code, notes, and snippets.

@AmyStephen
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AmyStephen/2af10d0b45c13218c8b2 to your computer and use it in GitHub Desktop.
Save AmyStephen/2af10d0b45c13218c8b2 to your computer and use it in GitHub Desktop.
Creates @Covers statements for class methods
<?php
$class = new ReflectionClass('Molajo\Controller\DateController');
$methods = $class->getMethods();
foreach ($methods as $method) {
echo ' * @covers ' . $method->class . '::' . $method->name . PHP_EOL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment