for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cmobi\RabbitmqBundle\Tests;
use Monolog\Logger;
use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\Container;
class BaseTestCase extends \PHPUnit_Framework_TestCase
{
private $container;
protected function setUp()
$kernel = new \AppKernel('test', true);
$kernel->boot();
$this->container = $kernel->getContainer();
}
/**
* @return Container
*/
protected function getContainer()
return $this->container;
* @return LoggerInterface
protected function getLoggerMock()
$logger = $this->getMockBuilder(Logger::class)
->disableOriginalConstructor()
->getMock();
return $logger;