8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d428a66 commit 9f80235Copy full SHA for 9f80235
cookbook/console.rst
@@ -207,13 +207,15 @@ console::
207
208
use Symfony\Component\Console\Tester\CommandTester;
209
use Symfony\Bundle\FrameworkBundle\Console\Application;
210
+ use Acme\DemoBundle\Command\GreetCommand.php;
211
212
class ListCommandTest extends \PHPUnit_Framework_TestCase
213
{
214
public function testExecute()
215
216
// mock the Kernel or create one depending on your needs
217
$application = new Application($kernel);
218
+ $application->add(new GreetCommand());
219
220
$command = $application->find('demo:greet');
221
$commandTester = new CommandTester($command);
0 commit comments