/** * Test... * * @covers JLanguage::setDefault * * @return void */ public function testSetDefault() { $this->object->setDefault('de-DE'); $this->assertEquals( 'de-DE', $this->object->getDefault(), 'Line: ' . __LINE__ ); $this->object->setDefault('en-GB'); }
/** * @todo Implement testGetDefault(). */ public function testGetDefault() { // This method returns tag language default $lang = new JLanguage(''); // In this case, returns en-GB $this->assertEquals('en-GB', $lang->getDefault(), 'Line: ' . __LINE__); $this->assertNotEquals('es-ES', $lang->getDefault(), 'Line: ' . __LINE__); // Only if there is an setDefault with another language, this test is wrong }