has_todo

as_string

This method prints the test as a string. It will probably be similar, but
not necessarily identical, to the original test line. Directives are
capitalized, some whitespace may be trimmed and a test number will be added if
it was not present in the original line. If you need the original text of the
test line, use the raw
method.

is_unplanned

if ($test->is_unplanned){ ... }

$test->is_unplanned(1);

If a test number is greater than the number of planned tests, this method will
return true. Unplanned tests will always return false for is_ok
,
regardless of whether or not the test has_todo
.

Note that if tests have a trailing plan, it is not possible to set this
property for unplanned tests as we do not know it's unplanned until the plan
is reached: