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