mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-20 10:59:00 +01:00
23 lines
571 B
PHP
23 lines
571 B
PHP
|
<?php
|
||
|
|
||
|
namespace Wallabag\CoreBundle\Tests\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 = array())
|
||
|
{
|
||
|
return $this;
|
||
|
}
|
||
|
}
|