function testReadEmpty() { $cli = new lmbCliInput(); $this->assertEqual($cli->getOptions(), array()); $this->assertEqual($cli->getArguments(), array()); $this->assertNull($cli->getOption('f')); $this->assertNull($cli->getOptionValue('f')); $this->assertFalse($cli->hasOption('f')); $this->assertEqual($cli->getOptionValue('f', 'wow'), 'wow'); $this->assertNull($cli->getArgument(0)); $this->assertEqual($cli->getArgument(0, 'wow'), 'wow'); }
function testUseStringOptionsDescriptionWithEndingSeparator() { $cli = new lmbCliInput('h|help;'); $opts = $cli->getOptions(); $this->assertEqual($opts[0], new lmbCliOption('h', 'help')); }