getMethods() as $reflectmethod ) { $params = ''; foreach ( $reflectmethod->getParameters() as $key => $row ) { 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) , 3, "class $className have " . 3 . ' methods.' ); //checking method '__construct' $t->can_ok( $obj, '__construct', '__construct() is callable' ); //$result = $obj->__construct ( $db_spool); //$t->isa_ok( $result, 'NULL', 'call to method __construct '); $t->todo( "call to method __construct using $db_spool "); //checking method 'returnStatus' $t->can_ok( $obj, 'returnStatus', 'returnStatus() is callable' ); //$result = $obj->returnStatus ( ); //$t->isa_ok( $result, 'NULL', 'call to method returnStatus '); $t->todo( "call to method returnStatus using "); //checking method 'db_insert' $t->can_ok( $obj, 'db_insert', 'db_insert() is callable' ); //$result = $obj->db_insert ( $db_spool); //$t->isa_ok( $result, 'NULL', 'call to method db_insert '); $t->todo( "call to method db_insert using $db_spool "); $t->todo ( 'review all pendings methods in this class');