public function execute(InputInterface $input, OutputInterface $output) { $server = $input->getArgument('server'); $key = $input->getArgument('key'); $recursive = $input->getOption('recursive'); $client = new EtcdClient($server); $data = $client->ls($key, $recursive); $output->writeln($data); }
/** * @covers LinkORB\Component\Etcd\Client::ls */ public function testLs() { $dirs = $this->client->ls(); $this->assertTrue(in_array($this->dirname, $dirs)); }