testShouldCreateReactorSuccessfully()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Ionut\Sylar\Tests\Unit\Integrations;
4
5
6
use Ionut\Sylar\Integrations\Standalone;
7
use Ionut\Sylar\Reactor;
8
use Ionut\Sylar\Tests\TestCase;
9
10
class StandaloneTest extends TestCase
11
{
12
    public function testShouldCreateReactorSuccessfully()
13
    {
14
        $standalone = new Standalone(tempnam('/tmp', 'tmpfile'));
15
        $this->assertInstanceOf(
16
            Reactor::class,
17
            $standalone->getReactor()
18
        );
19
    }
20
21
    public function testShouldRunWithoutExceptions()
22
    {
23
        $standalone = new Standalone(tempnam('/tmp', 'tmpfile'));
24
        $standalone->run();
25
    }
26
}