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); }
<?php include __DIR__ . '/vendor/autoload.php'; print_r(SMSCounter::count('a test string with \'`\' unicode character'));