Completed
Push — develop ( db9af5...942a5f )
by Mattias
05:43
created

ReactRunnerSpec::let()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
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)
0 ignored issues
show
Unused Code introduced by
The parameter $loop is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
    {
18
        $this->shouldHaveType(ReactRunner::class);
19
    }
20
21
    /*
0 ignored issues
show
Unused Code Comprehensibility introduced by
65% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
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