Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
core
/
vendor
/
sabberworm
/
php-css-parser
/
tests
/
Sabberworm
/
CSS
/
CSSList
:
DocumentTest.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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); } }