<?php
/**
 * core.framework
 *
 * @category   Core
 * @package    Core_Filter
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2011. Burza d.o.o. (http://web.burza.hr/en/)
 * @license    proprietary
 */

/**
 * @category   Core
 * @package    Core_Filter
 * @subpackage UnitTests
 * @copyright  Copyright (c) 2011. Burza d.o.o. (http://web.burza.hr/en/)
 * @license    proprietary
 * @group      Core_Filter
 */
class Core_Filter_TransliterateTest extends PHPUnit_Framework_TestCase
{
    /**
     * @var Core_Filter_Transliterate
     */
    protected $_object;

    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $this->_object = new Core_Filter_Transliterate;
    }

    /**
     * @covers Core_Filter_Transliterate::filter
     */
    public function testWillTransliterateString()
    {
        $original = 'ABCDE ČĆŽŠĐ abcde čćžšđ';
        $translit = 'ABCDE CCZSDj abcde cczsdj';
        $this->assertEquals($translit, $this->_object->filter($original));
    }
}