<commit_before><?php

namespace Sf2films\FilmsBundle\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class DefaultControllerTest extends WebTestCase
{
    public function testIndex()
    {
        $client = static::createClient();

        $crawler = $client->request('GET', '/hello/Fabien');

        $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
    }
}<commit_msg>Added tests<commit_after><?php

namespace Sf2films\FilmsBundle\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Sf2films\FilmsBundle\Repository\ContentRepository;

class DefaultControllerTest extends WebTestCase
{
//================================================================
    public function transliterData()
    {
        return array(
            array(array('притет мир')),
            array(array('123')),
            array(array('hello world'))
        );
    }

//================================================================
    /**
     * @dataProvider transliterData
     */
    public function testTransliter($data) {
        $transliter = $this->getMockBuilder('Sf2films\FilmsBundle\Transliter')
//            ->disableOriginalConstructor()
            ->setMethods(null)
            ->getMock()
        ;

        $result = $transliter->getTranslit($data[0]);
        $this->assertTrue($result != '');
    }

}
{'fraction_non_alphanumeric': 0.218705035971223, 'fraction_numerical': 0.006474820143884892, 'mean_word_length': 3.3742138364779874, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '4627546', 'n_tokens_mistral': 380, 'n_tokens_neox': 362, 'n_words': 55}