Esempio n. 1
0
 /**
  * creates the builder configuration.
  *
  * @param \YumlPhp\Builder\BuilderInterface $builder
  * @param InputInterface                    $input
  *
  * @return array
  */
 protected function getBuilderConfig(BuilderInterface $builder, InputInterface $input)
 {
     //scruffy, nofunky, plain
     //dir: LR TB RL
     //scale: 180 120 100 80 60
     $style = $input->getOption('style') ?: 'plain;dir:TB;scale:80;';
     $type = $builder->getType();
     return ['url' => 'http://yuml.me/diagram/' . $style . '/' . $type . '/', 'debug' => $input->getOption('debug'), 'style' => $input->getOption('style') ?: 'plain;dir:LR;scale:80;'];
 }
Esempio n. 2
0
 public function testType()
 {
     $this->assertEquals('test', $this->builder->getType());
 }
 /**
  * @dataProvider fileProvider
  */
 public function testType(BuilderInterface $builder, $data, $fixture, $type)
 {
     $this->assertEquals($type, $builder->getType());
 }