Completed
Push — master ( 745336...aadd5d )
by Matthew
06:17
created

ResetCommandTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testResetCommand() 0 5 1
A runResetCommand() 0 4 1
1
<?php
2
3
namespace Dtc\QueueBundle\Tests\Command;
4
5
use Dtc\QueueBundle\Command\ResetCommand;
6
use PHPUnit\Framework\TestCase;
7
8
class ResetCommandTest extends TestCase
9
{
10
    use CommandTrait;
11
12
    public function testResetCommand()
13
    {
14
        $this->runResetCommand([], 'resetErroneousJobs');
15
        $this->runResetCommand([], 'resetStalledJobs');
16
    }
17
18
    protected function runResetCommand($params, $call, $expectedResult = 0)
19
    {
20
        return $this->runStubCommand(ResetCommand::class, $params, $call, $expectedResult);
21
    }
22
}
23