| 1 | <?php |
||
| 10 | class BotFactorySpec extends ObjectBehavior |
||
| 11 | { |
||
| 12 | function let(\React\EventLoop\LoopInterface $loop) { |
||
| 13 | $this->beConstructedWith($loop); |
||
| 14 | } |
||
| 15 | |||
| 16 | function it_is_initializable(\React\EventLoop\LoopInterface $loop) |
||
| 17 | { |
||
| 18 | $this->shouldHaveType(BotFactory::class); |
||
| 19 | } |
||
| 20 | |||
| 21 | function it_will_create_a_bot_with_token(\React\EventLoop\LoopInterface $loop) |
||
| 22 | { |
||
| 23 | $this->createWithToken('BOT_TOKEN')->shouldImplement(BotInterface::class); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |