<commit_before><?php

namespace Grace\Test\DBAL;

use Grace\DBAL\MysqliConnection;
use Grace\DBAL\ExceptionConnection;
use Grace\DBAL\ExceptionQuery;

class MysqliConnectionTest extends AbstractConnectionTest
{
    /** @var MysqliConnection */
    protected $connection;

    protected function setUp()
    {
        $this->connection =
            new MysqliConnection(TEST_MYSQLI_HOST, TEST_MYSQLI_PORT, TEST_MYSQLI_NAME, TEST_MYSQLI_PASSWORD, TEST_MYSQLI_DATABASE);
    }
    protected function tearDown()
    {
        unset($this->connection);
    }
    public function testBadConnectionConfig()
    {
        unset($this->connection);
        $this->setExpectedException('Grace\DBAL\ExceptionConnection');
        $this->connection =
            new MysqliConnection(TEST_MYSQLI_HOST, TEST_MYSQLI_PORT, 'SOME BAD NAME', TEST_MYSQLI_PASSWORD, TEST_MYSQLI_DATABASE);
        //Lazy conniction, only if we really use database
        $r = $this->connection->execute('SELECT 1');
    }
}<commit_msg>[fix] spelling in "connection" word.<commit_after><?php

namespace Grace\Test\DBAL;

use Grace\DBAL\MysqliConnection;
use Grace\DBAL\ExceptionConnection;
use Grace\DBAL\ExceptionQuery;

class MysqliConnectionTest extends AbstractConnectionTest
{
    /** @var MysqliConnection */
    protected $connection;

    protected function setUp()
    {
        $this->connection =
            new MysqliConnection(TEST_MYSQLI_HOST, TEST_MYSQLI_PORT, TEST_MYSQLI_NAME, TEST_MYSQLI_PASSWORD, TEST_MYSQLI_DATABASE);
    }
    protected function tearDown()
    {
        unset($this->connection);
    }
    public function testBadConnectionConfig()
    {
        unset($this->connection);
        $this->setExpectedException('Grace\DBAL\ExceptionConnection');
        $this->connection =
            new MysqliConnection(TEST_MYSQLI_HOST, TEST_MYSQLI_PORT, 'SOME BAD NAME', TEST_MYSQLI_PASSWORD, TEST_MYSQLI_DATABASE);
        //Lazy connection, only if we really use database
        $r = $this->connection->execute('SELECT 1');
    }
}
{'fraction_non_alphanumeric': 0.10123456790123457, 'fraction_numerical': 0.0009876543209876543, 'mean_word_length': 3.6045454545454545, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '6431314', 'n_tokens_mistral': 649, 'n_tokens_neox': 637, 'n_words': 116}