Skip to content

Instantly share code, notes, and snippets.

Avatar

martinschaepker

View GitHub Profile
@martinschaepker
martinschaepker / testAllPublicFunctionTested
Last active Aug 29, 2015
get All not tested public methods
View testAllPublicFunctionTested
public function testAllPublicFunctionsTested()
{
$called= "App".substr( get_called_class(), 4, -4 );
$class = new \ReflectionClass( $called );
$traits = $class->getTraits();
foreach( $class->getMethods( ReflectionMethod::IS_PUBLIC ) as $methodObj )
{
You can’t perform that action at this time.