Passed
Push — master ( ed42e4...b3b06a )
by Kirill
04:44
created

ScopeTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testScopeError() 0 6 1
1
<?php
2
3
/**
4
 * Spiral Framework, SpiralScout LLC.
5
 *
6
 * @author    Anton Titov (Wolfy-J)
7
 */
8
9
declare(strict_types=1);
10
11
namespace Spiral\Tests\Console;
12
13
use PHPUnit\Framework\TestCase;
14
use Spiral\Core\Exception\ScopeException;
15
use Spiral\Tests\Console\Fixtures\User\UserCommand;
16
use Symfony\Component\Console\Input\ArrayInput;
17
use Symfony\Component\Console\Output\BufferedOutput;
18
19
class ScopeTest extends TestCase
20
{
21
    public function testScopeError(): void
22
    {
23
        $this->expectException(ScopeException::class);
24
25
        $c = new UserCommand();
26
        $c->run(new ArrayInput([]), new BufferedOutput());
27
    }
28
}
29