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

ReactRunnerSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 21
rs 10
1
<?php
2
3
namespace spec\TelegramBot;
4
5
use TelegramBot\BotInterface;
6
use TelegramBot\ReactRunner;
7
use PhpSpec\ObjectBehavior;
8
use Prophecy\Argument;
9
10
class ReactRunnerSpec 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(ReactRunner::class);
19
    }
20
21
    /*
22
    function it_calls_bot_in_a_loop(\React\EventLoop\LoopInterface $loop, $bot)
23
    {
24
        $bot->beADoubleOf(BotInterface::class);
25
        $this->setLoopTimeout(0);
26
        $bot->poll()->shouldBeCalled();
27
        $this->runBot($bot, 1);
28
    }
29
    */
30
}
31