hasMissingInformation() public method

 public function testHasMissingInformation()
 {
     $ic = new InformationCollector();
     $ic->registerRequest(new InformationRequest('foo'));
     $this->assertTrue($ic->hasMissingInformation());
     $ic->setValueFor('foo', 'bar');
     $this->assertFalse($ic->hasMissingInformation());
 }
Ejemplo n.º 2
0
 protected function interact(InputInterface $input, OutputInterface $output)
 {
     // Fill up questions
     if ($this->informationCollector->hasMissingInformation()) {
         foreach ($this->informationCollector->getInteractiveQuestions() as $name => $question) {
             $answer = $this->askQuestion($question);
             $this->informationCollector->setValueFor($name, $answer);
             $this->writeEmptyLine();
         }
     }
 }