/** * Test... * * @covers Joomla\Language\Language::get * * @return void * * @since 1.0 */ public function testGet() { $this->assertNull($this->object->get('noExist')); $this->assertEquals('abc', $this->object->get('noExist', 'abc')); // Note: property = tag, returns en-GB (default language) $this->assertEquals('en-GB', $this->object->get('tag')); // Note: property = name, returns English (United Kingdom) (default language) $this->assertEquals('English (United Kingdom)', $this->object->get('name')); }
/** * Test... * * @covers Joomla\Language\Language::get * @todo Implement testGet(). * * @return void */ public function testGet() { $this->assertNull($this->object->get('noExist')); $this->assertEquals('abc', $this->object->get('noExist', 'abc')); // Note: property = tag, returns en-GB (default language) $this->assertEquals('en-GB', $this->object->get('tag')); // Note: property = name, returns English (United Kingdom) (default language) $this->assertEquals('English (United Kingdom)', $this->object->get('name')); // Remove the following lines when you implement this test. $this->markTestIncomplete('This test has not been implemented yet.'); }