23 lines
574 B
PHP
23 lines
574 B
PHP
<?php
|
|
|
|
class UtilCSSCest {
|
|
public function _before() {
|
|
$this->css = new \MailPoet\Util\CSS();
|
|
}
|
|
|
|
// tests
|
|
public function itCanBeInstantiated() {
|
|
expect_that($this->css instanceof \MailPoet\Util\CSS);
|
|
}
|
|
|
|
public function itCanParseCss() {
|
|
$styles_array = array();
|
|
try {
|
|
$url = dirname(__DIR__).'/../assets/css/admin.css';
|
|
$css = $this->css->getCSS($url);
|
|
$styles_array = $this->css->parseCSS($css);
|
|
} catch(Exception $e) {}
|
|
expect($styles_array)->notEmpty();
|
|
}
|
|
}
|