芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/lot.mgaplay.com.br/vendor/emojione/emojione/lib/php/test/SpriteTest.php
sprites = true; $client->imageType = 'png'; $client->unicodeAlt = true; Emojione::setClient($client); } /** * prepare SpriteTest */ protected function tearDown() { Emojione::setClient(new Client); } /** * test Emojione::toImage() * * @return void */ public function testToImage() { $test = 'Hello world! 😄 :smile:'; $expected = 'Hello world!
😄
😄
'; $this->assertEquals(Emojione::toImage($test), $expected); } /** * test Emojione::shortnameToImage() * * @return void */ public function testShortnameToImage() { $test = 'Hello world! 😄 :smile:'; $expected = 'Hello world! 😄
😄
'; $this->assertEquals(Emojione::shortnameToImage($test), $expected); } /** * test Emojione::unicodeToImage() * * @return void */ public function testUnicodeToImage() { $test = 'Hello world! 😄 :smile:'; $expected = 'Hello world!
😄
:smile:'; $this->assertEquals(Emojione::unicodeToImage($test), $expected); } }