public function testCanNestObjectsInChildren() { $object = Element::strong('foo'); $link = Element::a('foo'); $this->object->nest($object, 'body'); $this->object->nest($link, 'body.link'); $this->assertEquals('<p>foo<strong>foo<a>foo</a></strong></p>', $this->object->render()); }