DumpCommandTest::getCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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