Skip to content

Instantly share code, notes, and snippets.

martinschaepker

Block or report user

Report or block martinschaepker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.