/** * @depends testInitialState * @return null */ public function testCreateBodyTagWithContentArrayOfStringsAndObjects() { $content1 = '<h1>this is a title</h1>'; $content2 = $this->factory->createGenericTag('title'); $content2->addContent('this is another title'); $expectedContent2 = $content2->build(); $list = array($content1, $content2); $tag = $this->factory->createBodyTag($list); $this->assertInstanceOf($this->tagInterface, $tag); $this->assertEquals('body', $tag->getTagName()); $this->assertFalse($tag->isEmpty()); $this->assertEquals($list[0], $tag->getContent(0)); $this->assertEquals($expectedContent2, $tag->getContent(1)); }