Locale = new Locale('EN', 'US'); } /** * Cleans up the environment after running a test. */ protected function tearDown() { $this->Locale = null; parent::tearDown(); } /** * Constructs the test case. */ public function __construct() {} /** * Tests Locale->__construct() */ public function test__construct() { $this->Locale->__construct('EN', 'US'); } /** * Tests Locale->equals() */ public function testEquals() { $locale = new Locale('EN', 'US'); $this->assertTrue($this->Locale->equals($locale)); } /** * Tests Locale->getCountry() */ public function testGetCountry() { $this->assertEquals('US', $this->Locale->getCountry()); } /** * Tests Locale->getLanguage() */ public function testGetLanguage() { $this->assertEquals('EN', $this->Locale->getLanguage()); } }