public function testCreate() { $config = new Config(); $environment = new GlobalEnvironment(null, $config); $this->assertNull($environment->getHomeDirectory()); $this->assertSame($config, $environment->getConfig()); $this->assertNull($environment->getConfigFile()); $this->assertInstanceOf('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface', $environment->getEventDispatcher()); }