Jacek Kowalski
2016-02-12 664fe7e953423790f556a0e9093a3d9667848567
commit | author | age
0868e0 1 <?php
JK 2 class BotMessageTest extends PHPUnit_Framework_TestCase {
3     function testAppend() {
4         $input = '   ąęß  śćżń  óó ';
5         $message = new BotMessage();
6         $message->setText($input);
7         
8         $this->assertEquals($input, $message->rawText);
9         $this->assertEquals('aess sczn oo', $message->text);
10         $this->assertEquals('aess', $message->command);
11         $this->assertEquals('śćżń  óó', $message->args);
12     }
13 }