php-8.3.3-mac/lib/php/pear/test/XML_Util/tests/CreateCDataSectionTests.php

15 lines
362 B
PHP
Raw Permalink Normal View History

2024-03-11 14:31:54 +03:00
<?php
class CreateCDataSectionTests extends AbstractUnitTests
{
/**
* @covers XML_Util::createCDataSection()
*/
public function testCreateCDataSectionBasicUsage()
{
$original = "I am content.";
$expected ="<![CDATA[I am content.]]>";
$this->assertEquals($expected, XML_Util::createCDataSection($original));
}
}