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

ScopeTest::testScopeError()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
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