} return $res; } } $obj = new Content(); //$t = new lime_test( 5, new lime_output_color() ); $t = new lime_test(12, new lime_output_color()); $t->diag('class Content'); $t->isa_ok($obj, 'Content', 'class Content created'); $t->todo('review all combinations of is_utf8 '); $t->todo('review is_utf8 should be in another class'); //Initialize the global domain (It is optional) $testDomain = new ymlDomain(); $test = new ContentTest('content.yml', $t, $testDomain); //check if an row exists, $test->load('loadContent'); $test->runSingle(); //check if an row exists, $test->load('deleteContent'); $test->runAll(); $test->load('addContentAcentos'); $test->runSingle(); //add the same row twice, the first time goes good, but the second the class throw an error $test->load('addContent1'); $test->runSingle(); $test->load('addContentTwice'); $test->runSingle(); $test->load('loadContent'); $test->runSingle(); $obj = new Content(); $res = $obj->addContent('1', '2', '3', 'en', 'language1');