<commit_before><?php
/**
 * This file is part of the HttplugBundle package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Http\HttplugBundle\Tests\Unit\ClientFactory;

use Http\HttplugBundle\ClientFactory\MockFactory;
use Http\Mock\Client;
use PHPUnit\Framework\TestCase;

/**
 * @author <NAME> <<EMAIL>>
 */
class MockFactoryTest extends TestCase
{
    public function testCreateClient()
    {
        $factory = new MockFactory();
        $client = $factory->createClient();

        $this->assertInstanceOf(Client::class, $client);

        $client = new Client();

        $factory->setClient($client);

        $this->assertEquals($client, $factory->createClient());
    }
}
<commit_msg>Fix: Use assertSame()<commit_after><?php
/**
 * This file is part of the HttplugBundle package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Http\HttplugBundle\Tests\Unit\ClientFactory;

use Http\HttplugBundle\ClientFactory\MockFactory;
use Http\Mock\Client;
use PHPUnit\Framework\TestCase;

/**
 * @author <NAME> <<EMAIL>>
 */
class MockFactoryTest extends TestCase
{
    public function testCreateClient()
    {
        $factory = new MockFactory();
        $client = $factory->createClient();

        $this->assertInstanceOf(Client::class, $client);

        $client = new Client();

        $factory->setClient($client);

        $this->assertSame($client, $factory->createClient());
    }
}

{'fraction_non_alphanumeric': 0.1265743073047859, 'fraction_numerical': 0.0, 'mean_word_length': 3.6057971014492756, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '1205834', 'n_tokens_mistral': 447, 'n_tokens_neox': 440, 'n_words': 120}