<commit_before><?php

namespace Funstaff\RefLibRis\Tests;

use Funstaff\RefLibRis\RisFieldsMapping;

/**
 * RisFieldsMappingTest
 *
 * @author <NAME> <<EMAIL>>
 */
class RisFieldsMappingTest extends \PHPUnit_Framework_TestCase
{
    /**
     * testFindField
     */
    public function testFindField()
    {
        $fieldMapping = new RisFieldsMapping($this->getMapping());
        $this->assertEquals('CN', $fieldMapping->findTagByField('isbn'));
        $this->assertNull($fieldMapping->findTagByField('ZZ'));
    }

    private function getMapping()
    {
        return [
            'TY' => ['type'],
            'CN' => ['isbn', 'issn'],
            'LA' => ['language'],
        ];
    }
}<commit_msg>Modify the test for the new function name on RisFieldsMapping<commit_after><?php

namespace Funstaff\RefLibRis\Tests;

use Funstaff\RefLibRis\RisFieldsMapping;

/**
 * RisFieldsMappingTest
 *
 * @author <NAME> <<EMAIL>>
 */
class RisFieldsMappingTest extends \PHPUnit_Framework_TestCase
{
    /**
     * testFindField
     */
    public function testFindField()
    {
        $fieldMapping = new RisFieldsMapping($this->getMapping());
        $this->assertEquals('CN', $fieldMapping->findRisFieldByFieldName('isbn'));
        $this->assertNull($fieldMapping->findRisFieldByFieldName('ZZ'));
    }

    private function getMapping()
    {
        return [
            'TY' => ['type'],
            'CN' => ['isbn', 'issn'],
            'LA' => ['language'],
        ];
    }
}
{'fraction_non_alphanumeric': 0.15498652291105122, 'fraction_numerical': 0.0, 'mean_word_length': 2.827319587628866, 'pattern_counts': {'":': 0, '<': 11, '<?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': '99074', 'n_tokens_mistral': 447, 'n_tokens_neox': 452, 'n_words': 77}