public function testParseQuotedValue() { $this->parser->setAttribute('charset'); $output = $this->parser->parse('charset="quoted value here"'); $this->assertInstanceOf('\\webignition\\QuotedString\\QuotedString', $output); $this->assertEquals('quoted value here', $output->getValue()); }
/** * * @param string $attribute * @return \webignition\InternetMediaType\Parameter\Parser\ValueParser */ private function getValueParser($attribute) { $valueParser = new ValueParser(); $valueParser->setAttribute($attribute); return $valueParser; }