Exemple #1
0
 /**
  * @dataProvider    invalidInputForParsingDeclarations
  */
 public function testParseDeclarationFromInvalidInput($string, $message)
 {
     $this->setExpectedException('Exception', $message);
     $rs = Parser::parseDeclaration($string);
 }
Exemple #2
0
 /**
  * @dataProvider    validInputForParsing
  */
 public function testCanBeSerialized($string, $css)
 {
     $rs = Parser::parseRule($string);
     $this->assertEquals($css, strval($rs));
 }