2015-03-28 20:45:35 +00:00
|
|
|
<?php
|
|
|
|
|
2016-06-01 19:27:35 +00:00
|
|
|
namespace Tests\Wallabag\CoreBundle\Mock;
|
2015-03-28 20:45:35 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
{
|
2016-04-12 09:36:01 +00:00
|
|
|
protected function runCommand($command, $parameters = [])
|
2015-03-28 20:45:35 +00:00
|
|
|
{
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
}
|