<commit_before><?php

use Illuminate\Queue\BeanstalkdQueue;
use Illuminate\Queue\Connectors\BeanstalkdConnector;
use L4\Tests\BackwardCompatibleTestCase;

class QueueBeanstalkdFactoryTest extends BackwardCompatibleTestCase
{
    /**
     * @test
     */
    public function testCreatingConnector(): void
    {
        $connetor = new BeanstalkdConnector();
        $queue = $connetor->connect([
            'host'  => 'localhost',
            'port'  => 11300,
            'queue' => 'default'
        ]);

        self::assertInstanceOf(BeanstalkdQueue::class, $queue);
        self::assertEquals('default', $queue->getQueue());
    }
}<commit_msg>test non default queue name<commit_after><?php

use Illuminate\Queue\BeanstalkdQueue;
use Illuminate\Queue\Connectors\BeanstalkdConnector;
use L4\Tests\BackwardCompatibleTestCase;

class QueueBeanstalkdFactoryTest extends BackwardCompatibleTestCase
{
    /**
     * @test
     */
    public function testCreatingConnector(): void
    {
        $connetor = new BeanstalkdConnector();
        $queue = $connetor->connect([
            'host'  => 'localhost',
            'port'  => 11300,
            'queue' => 'secondary'
        ]);

        self::assertInstanceOf(BeanstalkdQueue::class, $queue);
        self::assertEquals('secondary', $queue->getQueue());
    }
}
{'fraction_non_alphanumeric': 0.1276595744680851, 'fraction_numerical': 0.00911854103343465, 'mean_word_length': 3.0275229357798166, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '7476059', 'n_tokens_mistral': 393, 'n_tokens_neox': 385, 'n_words': 66}