Skip to content

Instantly share code, notes, and snippets.

@mpociot
Created July 13, 2017 09:44
Show Gist options
  • Save mpociot/83f75a64119dc1c36f2d8a3d0a1785f8 to your computer and use it in GitHub Desktop.
Save mpociot/83f75a64119dc1c36f2d8a3d0a1785f8 to your computer and use it in GitHub Desktop.
<?php
namespace Tests\BotMan;
use Tests\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$this->bot
->receives('test')
->assertReply('hello!');
}
/**
* A conversation test example.
*
* @return void
*/
public function testConversationBasicTest()
{
$this->bot
->receives('Start Conversation')
->assertQuestion('Huh - you woke me up. What do you need?')
->receives('joke')
->assertReply('funny');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment