assertEquals('', new CData(''));
$this->assertEquals('', new CData('foo'));
$this->assertEquals('', new CData('foo-bar'));
$this->assertEquals('bar]]>', (new CData('foo]]>bar'))->__toString());
}
public function testModification(): void
{
$cdata = new CData('foo');
$this->assertEquals('foo', $cdata->value());
$cdata->setValue('bar');
$this->assertEquals('bar', $cdata->value());
}
}