<commit_before><?php declare(strict_types=1);

/**
 * Unit tests for PHP_CompatInfo_Db, rdkafka extension Reference
 *
 * PHP version 7
 *
 * @category   PHP
 * @package    PHP_CompatInfo_Db
 * @subpackage Tests
 * @author     La<NAME> <<EMAIL>>
 * @author     <NAME> <<EMAIL>>
 * @license    https://opensource.org/licenses/BSD-3-Clause The 3-Clause BSD License
 * @link       http://bartlett.laurent-laville.org/php-compatinfo/
 */

namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpPecl\Rdkafka;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;

/**
 * @since Release 3.5.0 of PHP_CompatInfo_Db
 */
class RdkafkaExtensionTest extends GenericTest
{
}<commit_msg>fixed rdkafka tests depending of optional constants and methods<commit_after><?php declare(strict_types=1);

/**
 * Unit tests for PHP_CompatInfo_Db, rdkafka extension Reference
 *
 * PHP version 7
 *
 * @category   PHP
 * @package    PHP_CompatInfo_Db
 * @subpackage Tests
 * @author     Laurent Laville <<EMAIL>>
 * @author     <NAME> <<EMAIL>>
 * @license    https://opensource.org/licenses/BSD-3-Clause The 3-Clause BSD License
 * @link       http://bartlett.laurent-laville.org/php-compatinfo/
 */

namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpPecl\Rdkafka;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;

/**
 * @since Release 3.5.0 of PHP_CompatInfo_Db
 */
class RdkafkaExtensionTest extends GenericTest
{
    /**
     * Sets up the shared fixture.
     *
     * @return void
     */
    public static function setUpBeforeClass(): void
    {
        // depends on HAS_RD_KAFKA_PARTITIONER_MURMUR2
        self::$optionalconstants = [
            'RD_KAFKA_MSG_PARTITIONER_MURMUR2',
            'RD_KAFKA_MSG_PARTITIONER_MURMUR2_RANDOM',
        ];

        // depends on HAVE_RD_KAFKA_MESSAGE_HEADERS
        self::$optionalmethods = [
            'RdKafka\\ProducerTopic::producev',
        ];

        parent::setUpBeforeClass();
    }
}
{'fraction_non_alphanumeric': 0.11315924219150025, 'fraction_numerical': 0.008704557091653867, 'mean_word_length': 3.2850877192982457, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 14, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5563704', 'n_tokens_mistral': 644, 'n_tokens_neox': 637, 'n_words': 123}