Skip to content

Instantly share code, notes, and snippets.

@leopro
Last active December 11, 2015 06:09
Show Gist options
  • Save leopro/4557577 to your computer and use it in GitHub Desktop.
Save leopro/4557577 to your computer and use it in GitHub Desktop.
<?php
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use ImportCommand;
class ImportCommandTest extends WebTestCase
{
public function setUp()
{
$this->client = self::createClient();
$application = new Application($this->client->getKernel());
$application->add(new ImportCommand());
$profiler = $this->client->getKernel()->getContainer()->get('profiler');
$mailer = $profiler->get('swiftmailer');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment