Jacek Kowalski
2014-11-01 9eb89f7247598edc48f464f13933de825413358d
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 }