Jacek Kowalski
2014-06-11 6b36e75843ad46385fea0a81da04a7c982bea2a3
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 }