Category: Symfony2

Work Productivity

I’ve read a few articles that go into detail about setting up your computer and being productive at work, however I feel most of those are half ass attempts and really don’t give much detail. For that reason I’m going to take a shot at this and explain how I have my setup and why

Symfony2 Command Testing

So in the [symfony2 docs]( it says how to test a command, but never says how to get mock or create a kernel. Here’s the code you that may help you out. use Symfony\Component\Console\Tester\CommandTester; use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Acme\DemoBundle\Command\GreetCommand; class ListCommandTest extends WebTestCase { public function testExecute() { $kernel = self::createKernel(); $kernel->boot(); $application =