private function isInvalid($parameterString) { try { $parser = new AttributeParser(); $parser->parse($parameterString); } catch (\Exception $exception) { return true; } return false; }
public function testParseMissingValue() { $this->assertEquals('charset', $this->parser->parse("charset")); $this->assertEquals('charset', $this->parser->parse("charset=")); }