public function testAcceptsOnlyChainableParsers()
{
try {
new TokenParserRegistry([new FakeChainableTokenParser()]);
} catch (\Throwable $exception) {
$this->fails('Did not expect exception to be thrown.');
}
new TokenParserRegistry([new \stdClass()]);
}