$root = new Suite("parent", function () { }); $child = new Suite("nested", function () { }); $test = new Test("should be rad", function () { }); $child->addTest($test); $root->addTest($child); assert($test->getTitle() == "parent nested should be rad", "title should include text from parents"); }); }); describe('->setPending()', function () { it('should set the pending status', function () { $test = new Test("spec", function () { }); assert(is_null($test->getPending()), "spec pending should be null by default"); $test->setPending(true); assert($test->getPending(), "spec should be pending"); }); }); describe('->setScope()', function () { it('should set the scope of the test', function () { $scope = new Scope(); $test = new Test("spec", function () { }); $test->setScope($scope); assert($scope === $test->getScope(), "setScope should have set scope"); }); }); describe('->setParent()', function () { it('should bind the parent scope to the child', function () {