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

namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Large\Schema;

use EdmondsCommerce\DoctrineStaticMeta\Schema\MysqliConnectionFactory;
use EdmondsCommerce\DoctrineStaticMeta\Tests\Assets\AbstractLargeTest;
use EdmondsCommerce\DoctrineStaticMeta\Tests\Assets\AbstractTest;

/**
 * @covers \EdmondsCommerce\DoctrineStaticMeta\Schema\MysqliConnectionFactory
 * @medium
 */
class MysqliConnectionFactoryTest extends AbstractLargeTest
{
    public const WORK_DIR = AbstractTest::VAR_PATH . '/' . self::TEST_TYPE_MEDIUM . '/MysqliConnectionFactoryTest/';

    /**
     * @test
     */
    public function testCanCreateConnectionFromEntityManager()
    {
        $this->createDatabase();
        $connection = $this->getFactory()->createFromEntityManager($this->getEntityManager());
        self::assertNotEmpty($connection->client_info);
    }

    private function getFactory(): MysqliConnectionFactory
    {
        return new MysqliConnectionFactory();
    }
}
<commit_msg>fixing annotation<commit_after><?php declare(strict_types=1);

namespace EdmondsCommerce\DoctrineStaticMeta\Tests\Large\Schema;

use EdmondsCommerce\DoctrineStaticMeta\Schema\MysqliConnectionFactory;
use EdmondsCommerce\DoctrineStaticMeta\Tests\Assets\AbstractLargeTest;
use EdmondsCommerce\DoctrineStaticMeta\Tests\Assets\AbstractTest;

/**
 * @covers \EdmondsCommerce\DoctrineStaticMeta\Schema\MysqliConnectionFactory
 * @large
 */
class MysqliConnectionFactoryTest extends AbstractLargeTest
{
    public const WORK_DIR = AbstractTest::VAR_PATH . '/' . self::TEST_TYPE_MEDIUM . '/MysqliConnectionFactoryTest/';

    /**
     * @test
     */
    public function testCanCreateConnectionFromEntityManager()
    {
        $this->createDatabase();
        $connection = $this->getFactory()->createFromEntityManager($this->getEntityManager());
        self::assertNotEmpty($connection->client_info);
    }

    private function getFactory(): MysqliConnectionFactory
    {
        return new MysqliConnectionFactory();
    }
}

{'fraction_non_alphanumeric': 0.10681038706516413, 'fraction_numerical': 0.0009799118079372856, 'mean_word_length': 4.867816091954023, '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': '5707703', 'n_tokens_mistral': 600, 'n_tokens_neox': 590, 'n_words': 77}