public function testGetLocalByAlpha3() { putenv('LANGUAGE=uk_UA.UTF-8'); putenv('LC_ALL=uk_UA.UTF-8'); setlocale(LC_ALL, 'uk_UA.UTF-8'); $isoCodes = new \Sokil\IsoCodes(); $languages = $isoCodes->getLanguages(); $this->assertEquals('українська', $languages->getByAlpha3('ukr')->getLocalName()); }
public function testGetLocalByNumericCode() { putenv('LANGUAGE=uk_UA.UTF-8'); putenv('LC_ALL=uk_UA.UTF-8'); setlocale(LC_ALL, 'uk_UA.UTF-8'); $isoCodes = new \Sokil\IsoCodes(); $countries = $isoCodes->getCountries(); $this->assertEquals('Україна', $countries->getByNumericCode('804')->getLocalName()); }
public function testGetLocalByAlpha3() { putenv('LANGUAGE=uk_UA.UTF-8'); putenv('LC_ALL=uk_UA.UTF-8'); setlocale(LC_ALL, 'uk_UA.UTF-8'); $isoCodes = new \Sokil\IsoCodes(); $scripts = $isoCodes->getScripts(); $this->assertEquals('кавказька албанська', $scripts->getByNumericCode('239')->getLocalName()); }
public function testGetLocalByNumericCode() { putenv('LANGUAGE=uk_UA.UTF-8'); putenv('LC_ALL=uk_UA.UTF-8'); setlocale(LC_ALL, 'uk_UA.UTF-8'); $isoCodes = new \Sokil\IsoCodes(); $currencies = $isoCodes->getHistoricCurrencies(); $this->assertEquals('Югославський динар', $currencies->getByNumericCode(890)->getLocalName()); }
public function testGetLocalByNumericCode() { putenv('LANGUAGE=uk_UA.UTF-8'); putenv('LC_ALL=uk_UA.UTF-8'); setlocale(LC_ALL, 'uk_UA.UTF-8'); $isoCodes = new \Sokil\IsoCodes(); $currencies = $isoCodes->getCurrencies(); $this->assertEquals('Чеська крона', $currencies->getByNumericCode(203)->getLocalName()); }
public function testGetLocalByNumericCode() { putenv('LANGUAGE=uk_UA.UTF-8'); putenv('LC_ALL=uk_UA.UTF-8'); setlocale(LC_ALL, 'uk_UA.UTF-8'); $isoCodes = new \Sokil\IsoCodes(); $countries = $isoCodes->getHistoricCountries(); $this->assertEquals('Республіка Заїр', $countries->getByNumericCode(180)->getLocalNames()); }
public function testGetLocalByAlpha2() { putenv('LANGUAGE=uk_UA.UTF-8'); putenv('LC_ALL=uk_UA.UTF-8'); setlocale(LC_ALL, 'uk_UA.UTF-8'); $isoCodes = new \Sokil\IsoCodes(); $subdivisions = $isoCodes->getSubdivisions(); $this->assertArrayHasKey('UA-56', $subdivisions->getByAlpha2('UA')->getList()); $this->assertTrue(in_array("Рівненська область", $subdivisions->getByAlpha2('UA')->getLocalList())); }