Ejemplo n.º 1
0
 public function testUnicode()
 {
     $text = "`";
     $count = SMSCounter::count($text);
     $expected = new stdClass();
     $expected->encoding = SMSCounter::UTF16;
     $expected->length = 1;
     $expected->per_message = 70;
     $expected->remaining = 69;
     $expected->messages = 1;
     $this->assertEquals($expected, $count);
 }
Ejemplo n.º 2
0
<?php

include __DIR__ . '/vendor/autoload.php';
print_r(SMSCounter::count('a test string with \'`\' unicode character'));