Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/vendor/tubalmartin/cssmin/tests/ |
Upload File : |
<?php namespace tubalmartin\CssMin\Tests; use tubalmartin\CssMin\Minifier; use PHPUnit_Framework_TestCase; class MinifierTest extends PHPUnit_Framework_TestCase { protected $cssmin; protected function setUp() { $this->cssmin = new Minifier; } protected function getExpectation($name) { return file_get_contents(__DIR__ .'/expectations/'. $name .'.css'); } protected function getFixture($name) { return file_get_contents(__DIR__ .'/fixtures/'. $name .'.css'); } protected function execTest($expectationName, $fixtureName = null) { $this->assertEquals( $this->getExpectation($expectationName), $this->cssmin->run($this->getFixture(is_null($fixtureName) ? $expectationName : $fixtureName)) ); } public function testAtRules() { $this->execTest('at-rules'); } public function testAttributeSelectors() { $this->execTest('attribute-selectors'); } public function testBackgroundProperty() { $this->execTest('background'); } public function testBackgroundPositionProperty() { $this->execTest('background-position'); } public function testBorderProperty() { $this->execTest('border'); } public function testCalcFunction() { $this->execTest('calc'); } public function testColors() { $this->execTest('colors'); } public function testComments() { $this->execTest('comments'); } public function testDataUrlBase64DoubleQuotes() { $this->execTest('dataurl-base64-doublequotes'); } public function testDataUrlBase64Eof() { $this->execTest('dataurl-base64-eof'); } public function testDataUrlBase64LineBreakInData() { $this->execTest('dataurl-base64-linebreakindata'); } public function testDataUrlBase64NoQuotes() { $this->execTest('dataurl-base64-noquotes'); } public function testDataUrlBase64SingleQuotes() { $this->execTest('dataurl-base64-singlequotes'); } public function testDataUrlBase64TwoUrls() { $this->execTest('dataurl-base64-twourls'); } public function testDataUrlDbQuoteFont() { $this->execTest('dataurl-dbquote-font'); } public function testDataUrlInlineSvg() { $this->execTest('dataurl-inline-svg'); } public function testDataUrlNonBase64DoubleQuotes() { $this->execTest('dataurl-nonbase64-doublequotes'); } public function testDataUrlNonBase64NoQuotes() { $this->execTest('dataurl-nonbase64-noquotes'); } public function testDataUrlNonBase64SingleQuotes() { $this->execTest('dataurl-nonbase64-singlequotes'); } public function testDataUrlNoQuoteMultilineFont() { $this->execTest('dataurl-noquote-multiline-font'); } public function testDataUrlRealDataDoubleQuotes() { $this->execTest('dataurl-realdata-doublequotes'); } public function testDataUrlRealDataNoQuotes() { $this->execTest('dataurl-realdata-noquotes'); } public function testDataUrlRealDataSingleQuotes() { $this->execTest('dataurl-realdata-singlequotes'); } public function testDataUrlRealDataYuiApp() { $this->execTest('dataurl-realdata-yuiapp'); } public function testDataUrlSingleQuoteFont() { $this->execTest('dataurl-singlequote-font'); } public function testEmptyRules() { $this->execTest('empty-rules'); } public function testFlexProperty() { $this->execTest('flex'); } public function testFontWeightProperty() { $this->execTest('font-weight'); } public function testImportantRule() { $this->execTest('important'); } public function testKeepSourcemapComment() { $this->cssmin->keepSourceMapComment(); $this->execTest('sourcemap-comment-preserve', 'sourcemap-comment'); } public function testLinebreakPosition() { $this->cssmin->setLineBreakPosition(10); $this->execTest('linebreak-position'); } public function testLinebreakPositionDoubleNewline() { $this->cssmin->setLineBreakPosition(1); $this->cssmin->keepSourceMapComment(); $this->execTest('sourcemap-comment-preserve', 'sourcemap-comment'); } public function testLowercasing() { $this->execTest('lowercasing'); } public function testNumbers() { $this->execTest('numbers'); } public function testOldIeFilters() { $this->execTest('old-ie-filters'); } public function testPreserveCase() { $this->execTest('preserve-case'); } public function testPseudoClasses() { $this->execTest('pseudo-classes'); } public function testPseudoElements() { $this->execTest('pseudo-elements'); } public function testRemoveImportantComments() { $this->cssmin->removeImportantComments(); $this->execTest('important-comments-remove', 'comments'); } public function testRemoveSourcemapComment() { $this->execTest('sourcemap-comment-remove', 'sourcemap-comment'); } public function testSemicolons() { $this->execTest('semicolons'); } public function testShortenableProperties() { $this->execTest('shortenable-properties'); } public function testStarUnderscoreHacks() { $this->execTest('star-underscore-hacks'); } public function testStrings() { $this->execTest('strings'); } public function testTextShadowProperty() { $this->execTest('text-shadow'); } public function testUnitMs() { $this->execTest('unit-ms'); } public function testWebkitTransformOrigin() { $this->execTest('webkit-transform-origin'); } // Frameworks public function testBootstrap() { $this->execTest('bootstrap'); } public function testBulma() { $this->execTest('bulma'); } public function testFoundation() { $this->execTest('foundation'); } public function testKube() { $this->execTest('kube'); } public function testMaterialize() { $this->execTest('materialize'); } public function testMui() { $this->execTest('mui'); } public function testPure() { $this->execTest('pure'); } }