public function testCannotParseMalformedElements(string $element) { try { $this->parser->parse($element); $this->fail('Expected exception to be thrown.'); } catch (\RuntimeException $exception) { // expected } }