Ejemplo n.º 1
0
 public function testHelpCommandExecuteWithParameterValidCommand()
 {
     $text = $this->command->setUpdate(TestHelpers::getFakeUpdateCommandObject('/help echo'))->execute()->getResult()->getText();
     $this->assertContains("Description: Show text\nUsage: /echo <text>", $text);
 }
Ejemplo n.º 2
0
 public function testEchoCommandExecuteWithParameter()
 {
     $text = $this->command->setUpdate(TestHelpers::getFakeUpdateCommandObject('/echo Message!'))->execute()->getResult()->getText();
     $this->assertEquals('Message!', $text);
 }