Completed
Pull Request — master (#2)
by Siad
03:38
created

BotFactorySpec::let()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace spec\TelegramBot;
4
5
use TelegramBot\BotInterface;
6
use TelegramBot\BotFactory;
7
use PhpSpec\ObjectBehavior;
8
use Prophecy\Argument;
9
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