aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle/Mock/InstallCommandMock.php
blob: 59529362c37287f0ca49a64fec2b8e3e2bf2b191 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace Tests\Wallabag\CoreBundle\Mock;

use Wallabag\CoreBundle\Command\InstallCommand;

/**
 * This mock aims to speed the test of InstallCommand by avoid calling external command
 * like all doctrine commands.
 *
 * This speed the test but as a downside, it doesn't allow to fully test the InstallCommand
 *
 * Launching tests to avoid doctrine command:
 *     phpunit --exclude-group command-doctrine
 */
class InstallCommandMock extends InstallCommand
{
    protected function runCommand($command, $parameters = [])
    {
        // echo $command."\n";
        var_dump($command);

        return $this;
    }
}