Exemple #1
0
function todo($why, $todo_tests)
{
    todo_begin($why);
    call_user_func($todo_tests);
    todo_end();
}
Exemple #2
0
	isa_ok($test_obj, 'TestClass2');
	check_capture(false);

	fail('fail()');
	check_capture(false);

	include_ok($dir.'/inc_false.php');
	check_capture(false);

	require_ok($dir.'/inc_false.php');
	check_capture(false);

	is_deeply($struct_1, $struct_2, 'is_deeply()');
	check_capture(false);

	todo_begin("Testing");

	fail("example unimplemented todo test");
	check_capture(false);

	todo_end();

        // in 5.3 we would pass an anonymous function
	function ex_todo_fail() {
		fail("example fail in subroutine");
	}
	todo( "Testing", "ex_todo_fail" );
	check_capture(false);

	
	$GLOBALS['_no_plan'] = false;