Пример #1
0
 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());
 }