public function testCreate() { $this->config->addArgument('argument'); $this->config->addOption('option', 'o'); $application = new ConsoleApplication($this->config); $this->assertSame($this->config, $application->getConfig()); $this->assertEquals(new ArgsFormat(array(new Argument('argument'), new Option('option', 'o'))), $application->getGlobalArgsFormat()); }