/**
  * Test...
  *
  * @covers Joomla\Language\Language::setTransliterator
  * @todo Implement testSetTransliterator().
  *
  * @return void
  */
 public function testSetTransliterator()
 {
     $function1 = 'phpinfo';
     $function2 = 'print';
     $lang = new Language('');
     // Note: set -> $funtion1: set returns NULL and get returns $function1
     $this->assertNull($lang->setTransliterator($function1));
     $get = $lang->getTransliterator();
     $this->assertEquals($function1, $get, 'Line: ' . __LINE__);
     $this->assertNotEquals($function2, $get, 'Line: ' . __LINE__);
     // Note: set -> $function2: set returns $function1 and get retuns $function2
     $set = $lang->setTransliterator($function2);
     $this->assertEquals($function1, $set, 'Line: ' . __LINE__);
     $this->assertNotEquals($function2, $set, 'Line: ' . __LINE__);
     $this->assertEquals($function2, $lang->getTransliterator(), 'Line: ' . __LINE__);
     $this->assertNotEquals($function1, $lang->getTransliterator(), 'Line: ' . __LINE__);
 }
 /**
  * Tests the setTransliterator function
  *
  * @covers  Joomla\Language\Language::setTransliterator
  *
  * @return  void
  *
  * @since   1.0
  */
 public function testSetTransliterator()
 {
     $function1 = 'phpinfo';
     $function2 = 'print';
     $lang = new Language('');
     // Set sets new function and return old.
     $this->assertEquals(array('en_GBLocalise', 'transliterate'), $lang->setTransliterator($function1));
     $get = $lang->getTransliterator();
     $this->assertEquals($function1, $get, 'Line: ' . __LINE__);
     $this->assertNotEquals($function2, $get, 'Line: ' . __LINE__);
     // Note: set -> $function2: set returns $function1 and get retuns $function2
     $set = $lang->setTransliterator($function2);
     $this->assertEquals($function1, $set, 'Line: ' . __LINE__);
     $this->assertNotEquals($function2, $set, 'Line: ' . __LINE__);
     $this->assertEquals($function2, $lang->getTransliterator(), 'Line: ' . __LINE__);
     $this->assertNotEquals($function1, $lang->getTransliterator(), 'Line: ' . __LINE__);
 }