<commit_before><?php

namespace Phipe\Connection\Decorating;

class DecoratingConnectionTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var DecoratingConnection
     */
    protected $connection;

    /**
     * @var \PHPUnit_Framework_MockObject_MockObject
     */
    protected $proxied;

    protected function setUp()
    {
        $this->proxied = $this->getMock('\Phipe\Connection\Connection');

        $this->connection = $this->getMockForAbstractClass(
            '\Phipe\Connection\Decorating\DecoratingConnection',
            array($this->proxied)
        );
    }

    public function testSetConnection()
    {
        /** @var \PHPUnit_Framework_MockObject_MockObject|\Phipe\Connection\Connection $connection */
        $connection = $this->getMock('\Phipe\Connection\Connection');;

        $this->connection->setConnection($connection);

        $this->assertEquals($connection, $this->connection->getConnection());<commit_msg>Removed superfluous semicolon.<commit_after><?php

namespace Phipe\Connection\Decorating;

class DecoratingConnectionTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var DecoratingConnection
     */
    protected $connection;

    /**
     * @var \PHPUnit_Framework_MockObject_MockObject
     */
    protected $proxied;

    protected function setUp()
    {
        $this->proxied = $this->getMock('\Phipe\Connection\Connection');

        $this->connection = $this->getMockForAbstractClass(
            '\Phipe\Connection\Decorating\DecoratingConnection',
            array($this->proxied)
        );
    }

    public function testSetConnection()
    {
        /** @var \PHPUnit_Framework_MockObject_MockObject|\Phipe\Connection\Connection $connection */
        $connection = $this->getMock('\Phipe\Connection\Connection');

        $this->connection->setConnection($connection);

        $this->assertEquals($connection, $this->connection->getConnection());
{'fraction_non_alphanumeric': 0.1277258566978193, 'fraction_numerical': 0.0, 'mean_word_length': 3.170995670995671, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '5525637', 'n_tokens_mistral': 531, 'n_tokens_neox': 524, 'n_words': 71}