/** Tests for Exception for {@link Element::append}. */ public function testAppendWithExceptionForObject() { $this->expectException(\LogicException::class); $node = new TextNode('No'); $node->append(new \stdClass()); }