/** * @depends testDefaultGetBodyContentTag * @return null */ public function testAddBodyContentNull() { $body = $this->htmlDoc->getBodyContentTag(); $this->assertSame($this->htmlDoc, $this->htmlDoc->addBodyContent(null)); $expected = array(null); $this->assertEquals($expected, $body->getContent()); $this->assertEquals($expected, $this->htmlDoc->getBodyContent(true)); $this->assertEquals($body->buildContent(), $this->htmlDoc->getBodyContent()); }