PurgeCommandTest::testExecute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 2
Metric Value
c 4
b 0
f 2
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Sleepness\UberTranslationBundle\Tests\Command;
4
5
use Sleepness\UberTranslationBundle\Command\PurgeCommand;
6
7
/**
8
 * Test memcached purging command
9
 *
10
 * @author Viktor Novikov <[email protected]>
11
 * @author Alexandr Zhulev <[email protected]>
12
 */
13
class PurgeCommandTest extends CommandTestCase
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    protected function getCommandInstance()
19
    {
20
        return new PurgeCommand();
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected function getCommand()
27
    {
28
        return 'uber:translations:purge';
29
    }
30
31
    /**
32
     * Test purge command execution
33
     */
34
    public function testExecute()
35
    {
36
        $this->commandTester->execute(array());
37
        $this->assertTrue(is_string($this->commandTester->getDisplay()));
38
    }
39
}
40