idealo/php-rdkafka-ffi

View on GitHub
resources/phpunit/bootstrap.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

use RdKafka\FFI\Library;

require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/config.php';

$version = getenv('LIBRDKAFKA_VERSION') ?: '';
$version = ltrim($version, 'v');
$version = $version === 'master' ? Library::VERSION_LATEST : $version;
Library::init($version, 'RdKafka', LIBRDKAFKA_LIBRARY_PATH);