StandaloneTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testShouldCreateReactorSuccessfully() 0 8 1
A testShouldRunWithoutExceptions() 0 5 1
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
}