Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\TokenParser\TokenParserRegistryTest::testAcceptsOnlyChainableParsers PHP Method

testAcceptsOnlyChainableParsers() public method

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