/**
	 * Test...
	 *
	 * @covers JLanguage::getName
	 * @todo Implement testGetName().
	 *
	 * @return void
	 */
	public function testGetName()
	{
		$this->assertEquals(
			'English (United Kingdom)',
			$this->object->getName()
		);

		// Remove the following lines when you implement this test.
		$this->markTestIncomplete(
			'This test has not been implemented yet.'
		);
	}
Example #2
0
 /**
  * Test...
  *
  * @return void
  */
 public function testGetName()
 {
     $this->assertEquals('English (en-GB)', $this->object->getName());
 }
Example #3
0
 /**
  * @todo Implement testGetName().
  */
 public function testGetName()
 {
     // This method get language name
     $lang = new JLanguage('');
     // In this case, returns English (United Kingdom) (default language)
     // - same operation of get method with name property
     $this->assertEquals('English (United Kingdom)', $lang->getName(), 'Line: ' . __LINE__);
     $this->assertNotEquals('Spanish (Spain)', $lang->getName(), 'Line: ' . __LINE__);
 }