schwern/test-more — Issue #229: Remove finalize(), parent() and child().  Add is_subtest().
Author: schwern
Created: 2011-11-18 23:19:32+00:00
State: open
Labels: Blocking Stable, DO IT, Easy, Test-Builder2

Test::Requires checks `$builder->can("parent")` before calling `parent`. Because `parent` is a stub which throws an exception telling the user that `parent` has been removed... it defeats the point of checking if Test::Builder has a parent method.

* Remove the stubs `finalize`, `parent`, and `child` from Test::Builder.
* Add a new method `is_subtest` to return `$self->history->is_subtest`

This will provide a clean upgrade path from old to new style subtests.