/** * test console loads correct variables from the command line */ public function testLoadFromEnvironment() { $this->markTestSkipped('The ' . __CLASS__ . ' Symfony ... Console App ... so difficult to extend and test :['); $consoleApp = new Console(); $consoleApp->setAutoExit(false); $appTester = new ApplicationTester($consoleApp); $appTester->run(array('--skip-user' => 'mudi', '--skip-env' => 'test', '--skip-app-path' => './tests/fixtures/app'), array('verbosity' => 3)); $app = $consoleApp->getApp(); $skipCore = $app['skip']['core']; $this->assertEquals("mudi", $skipCore["user"]); $this->assertEquals("test", $skipCore["env"]); }