DumpCommandTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCommandInstance() 0 4 1
A getCommand() 0 4 1
A testExecute() 0 5 1
1
<?php
2
3
namespace Sleepness\UberTranslationBundle\Tests\Command;
4
5
use Sleepness\UberTranslationBundle\Command\DumpCommand;
6
7
/**
8
 * Test cli command for dump memcached translations
9
 *
10
 * @author Viktor Novikov <[email protected]>
11
 */
12
class DumpCommandTest extends CommandTestCase
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    protected function getCommandInstance()
18
    {
19
        return new DumpCommand();
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected function getCommand()
26
    {
27
        return 'uber:translations:dump';
28
    }
29
30
    /**
31
     * Test purge command execution
32
     */
33
    public function testExecute()
34
    {
35
        $this->commandTester->execute(array());
36
        $this->assertTrue(is_string($this->commandTester->getDisplay()));
37
    }
38
}
39