<?php

namespace Funstaff\RefLibRis\Tests;

use Funstaff\RefLibRis\RisFieldsMapping;

/**
 * RisFieldsMappingTest
 *
 * @author Bertrand Zuchuat <bertrand.zuchuat@gmail.com>
 */
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'],
        ];
    }
}
<?php

namespace Funstaff\RefLibRis\Tests;

use Funstaff\RefLibRis\RisFieldsMapping;

/**
 * RisFieldsMappingTest
 *
 * @author Bertrand Zuchuat <bertrand.zuchuat@gmail.com>
 */
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'],
        ];
    }
}
Modify the test for the new function name on RisFieldsMapping
Modify the test for the new function name on RisFieldsMapping
