public function testIsGsmConTextoGsm() { $gsm338 = new Gsm338(); $this->assertEquals($gsm338->isGsm('probando'), true); $this->assertEquals($gsm338->isGsm('probandol lkd s €'), true); $this->assertEquals($gsm338->isGsm('probandol lkd s АТЕЛЬСТ'), false); $this->assertEquals($gsm338->isGsm('АТЕЛЬСТ'), false); }
public function createCharset($text) { $gsm = new Gsm338(); return $gsm->isGsm($text) ? $gsm : new Unicode(); }