getMethods() as $reflectmethod ) {literal} { {/literal} $params = ''; foreach ( $reflectmethod->getParameters() as $key => $row ) {literal} { {/literal} if ( $params != '' ) $params .= ', '; $params .= '$' . $row->name; } $testItems++; $methods[ $reflectmethod->getName() ] = $params; } //To change the case only the first letter of each word, TIA $className = ucwords($className); $t->diag("class $className" ); $t->isa_ok( $obj , $className, "class $className created"); $t->is( count($methods) , {$cantMethods}, "class $className have " . {$cantMethods} . ' methods.' ); {foreach from=$methods key=methodName item=parameters} //checking method '{$methodName}' $t->can_ok( $obj, '{$methodName}', '{$methodName}() is callable' ); //$result = $obj->{$methodName} ( {$parameters}); //$t->isa_ok( $result, 'NULL', 'call to method {$methodName} '); $t->todo( "call to method {$methodName} using {$parameters} "); {/foreach} $t->todo ( 'review all pendings methods in this class');