Created
July 13, 2017 09:44
-
-
Save mpociot/83f75a64119dc1c36f2d8a3d0a1785f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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