Created
June 30, 2014 15:32
-
-
Save bichotll/fe25f726da2af6602f67 to your computer and use it in GitHub Desktop.
Bundle testing with container setUp - not mine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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