| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/msc/dompdf/lib/php-css-parser/tests/Sabberworm/CSS/CSSList/ |
Upload File : |
<?php
namespace Sabberworm\CSS\CSSList;
use Sabberworm\CSS\Parser;
class DocumentTest extends \PHPUnit_Framework_TestCase {
public function testOverrideContents() {
$sCss = '.thing { left: 10px; }';
$oParser = new Parser($sCss);
$oDoc = $oParser->parse();
$aContents = $oDoc->getContents();
$this->assertCount(1, $aContents);
$sCss2 = '.otherthing { right: 10px; }';
$oParser2 = new Parser($sCss);
$oDoc2 = $oParser2->parse();
$aContents2 = $oDoc2->getContents();
$oDoc->setContents(array($aContents[0], $aContents2[0]));
$aFinalContents = $oDoc->getContents();
$this->assertCount(2, $aFinalContents);
}
}