public function __construct() { self::bootKernel(array('environment' => 'test', 'debug' => 'true')); $this->container = self::$kernel->getContainer(); }