<commit_before><?php

namespace Mango\Test;

use Mango\Mango;

class MangoTest extends \PHPUnit_Framework_TestCase
{
    private function getConnection()
    {
        return new Mango('mongodb://localhost:27017');
    }

    public function testConnect()
    {
        $mango = $this->getConnection();

        self::assertTrue($mango->getConnection()->isConnected());
    }

    /**
     * @expectedException \Mango\Exception\ConnectionException
     */

    public function testConnectWithInvalidUri()
    {
        $mango = new Mango('fgdkijadsfsklfkjlds');
    }

    public function testDisconnect()
    {
        $mango = $this->getConnection();
        $mango->disconnect();

        self::assertFalse($mango->getConnection()->isConnected());
    }
}<commit_msg>fixed namespace<commit_after><?php

namespace Mango\Tests;

use Mango\Mango;

class MangoTest extends \PHPUnit_Framework_TestCase
{
    private function getConnection()
    {
        return new Mango('mongodb://localhost:27017');
    }

    public function testConnect()
    {
        $mango = $this->getConnection();

        self::assertTrue($mango->getConnection()->isConnected());
    }

    /**
     * @expectedException \Mango\Exception\ConnectionException
     */

    public function testConnectWithInvalidUri()
    {
        $mango = new Mango('fgdkijadsfsklfkjlds');
    }

    public function testDisconnect()
    {
        $mango = $this->getConnection();
        $mango->disconnect();

        self::assertFalse($mango->getConnection()->isConnected());
    }
}
{'fraction_non_alphanumeric': 0.13480233311730394, 'fraction_numerical': 0.0064808813998703824, 'mean_word_length': 2.938775510204082, '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': '6517164', 'n_tokens_mistral': 470, 'n_tokens_neox': 448, 'n_words': 73}