protected function getParser() { if ($this->parser) { return $this->parser; } foreach (SimpleTest::getParsers() as $parser) { if ($parser->can()) { return $parser; } } }