Пример #1
0
 public function testSetLoaded()
 {
     $loaded = ['image1', 'image2'];
     $state = new State();
     $state->setLoaded($loaded);
     $rc = new \ReflectionClass($state);
     $rp = $rc->getProperty('loaded');
     $rp->setAccessible(true);
     $this->assertEquals($loaded, $rp->getValue($state));
 }
Пример #2
0
 /**
  * Build state
  *
  * @param \Symfony\Component\Console\Input\InputInterface $input The command input
  *
  * @return \VEBERArnaud\ETLBundle\DTO\State
  */
 protected function buildState(InputInterface $input)
 {
     $state = new State();
     $state->setInput(['arguments' => $input->getArguments(), 'options' => $input->getOptions()]);
     return $state;
 }