Passed
Push — master ( 7bc6a4...bace86 )
by Dmitriy
06:54 queued 04:27
created

ResetCommandTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCommand() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Debug\Tests\Unit\Command;
6
7
use PHPUnit\Framework\TestCase;
8
use Symfony\Component\Console\Tester\CommandTester;
9
use Yiisoft\Yii\Debug\Command\ResetCommand;
10
use Yiisoft\Yii\Debug\Storage\StorageInterface;
11
12
final class ResetCommandTest extends TestCase
13
{
14
    public function testCommand()
15
    {
16
        $storage = $this->createMock(StorageInterface::class);
17
        $storage->expects($this->once())->method('clear');
18
19
        $command = new ResetCommand($storage);
20
21
        $commandTester = new CommandTester($command);
22
23
        $commandTester->execute([]);
24
    }
25
}
26