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