/** * Execute command * * @param InputInterface $input The input used for this command * @param OutputInterface $output The output used for this command * * @return void * @since 0.1 */ protected function execute(InputInterface $input, OutputInterface $output) { $analyser = Puml\Analyser::create($input->getArgument('object')); $object = $analyser->run(); $transformer = Puml\Transformer\Factory::create($input->getArgument('filename')); $transformer->run($object); }
/** * @covers Puml\Analyser::create */ public function testCreate() { $name = 'stdClass'; $analyser = \Puml\Analyser::create($name); $this->assertSame($name, $analyser->getObjectName()); }