src/Behat/Behat/Context/ContextFactory.php
private function createInstance(ReflectionClass $reflection, array $arguments)
    {
        if (count($arguments)) {
            return $reflection->newInstanceArgs($arguments);
        }

        return $reflection->newInstance();
    }
private function createInstance(ReflectionClass $reflection, array $arguments)
    {
        if (count($arguments)) {
            return $reflection->newInstanceArgs($arguments);
        }

        return $reflection->newInstance();
    }
private function createInstance ( ReflectionClass $ reflection , array $ arguments ) { if ( count ( $ arguments ) ) { return $ reflection -> newInstanceArgs ( $ arguments ) ; } return $ reflection -> newInstance ( ) ; }
Creates context instance.

@param ReflectionClass $reflection
@param array           $arguments

@return mixed
Creates context instance .