<commit_before><?php
/**
 * Class FinderTest
 *
 * @author <NAME> <<EMAIL>>
 */
namespace MauroMoreno\FindBundle\Tests\Services;

use MauroMoreno\FindBundle\Service\Finder;

/**
 * Class FinderTest
 * @package MauroMoreno\FindBundle\Tests\Services
 */
class FinderTest extends \PHPUnit_Framework_TestCase
{

    /**
     * @var Finder
     */
    private $finder;

    /**
     * Set up
     */
    public function setUp()
    {
        parent::setUp();

        $this->finder = new Finder();
    }

    /**
     * Test find, wrong parameter pattern
     *
     * @expectedException \InvalidArgumentException
     */
    public function testFindWrongParameterPattern()
    {
        $found = $this->finder->find(
           [],
            new \SplFileInfo(__DIR__ . '/../Fixtures/directory/file_2')
        );
    }

    /**
     * Test find, wrong parameter fileInfo
     *
     * @expectedException \TypeError
     */
    public function testFindWrongParameterFileInfo()
    {
        $found = $this->finder->find(
            'pattern',
            'bad_parameter'
        );
    }

    /**
     * Test find, not found
     */
    public function testFindNotFound()
    {<commit_msg>Delete test for 5.5 an 5.6 compability<commit_after><?php
/**
 * Class FinderTest
 *
 * @author <NAME> <<EMAIL>>
 */
namespace MauroMoreno\FindBundle\Tests\Services;

use MauroMoreno\FindBundle\Service\Finder;

/**
 * Class FinderTest
 * @package MauroMoreno\FindBundle\Tests\Services
 */
class FinderTest extends \PHPUnit_Framework_TestCase
{

    /**
     * @var Finder
     */
    private $finder;

    /**
     * Set up
     */
    public function setUp()
    {
        parent::setUp();

        $this->finder = new Finder();
    }

    /**
     * Test find, wrong parameter pattern
     *
     * @expectedException \InvalidArgumentException
     */
    public function testFindWrongParameterPattern()
    {
        $found = $this->finder->find(
           [],
            new \SplFileInfo(__DIR__ . '/../Fixtures/directory/file_2')
        );
    }

    /**
     * Test find, not found
     */
    public function testFindNotFound()
    {
{'fraction_non_alphanumeric': 0.1295774647887324, 'fraction_numerical': 0.0028169014084507044, 'mean_word_length': 2.0617816091954024, 'pattern_counts': {'":': 0, '<': 11, '<?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': '7291963', 'n_tokens_mistral': 646, 'n_tokens_neox': 634, 'n_words': 126}