Skip to content

Instantly share code, notes, and snippets.

@bichotll
Created June 30, 2014 15:32
Show Gist options
  • Save bichotll/fe25f726da2af6602f67 to your computer and use it in GitHub Desktop.
Save bichotll/fe25f726da2af6602f67 to your computer and use it in GitHub Desktop.
Bundle testing with container setUp - not mine
<?php
require_once __DIR__.'/../../../../../../../app/AppKernel.php';
class ContainerTestCase extends WebTestCase {
private $container;
public function setUp() {
$this->app = new \AppKernel('test', true);
$this->app->boot();
$this->container = $this->app->getContainer();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment