PhpSpec\Console\ConsoleIO::isStopOnFailureEnabled PHP Метод

isStopOnFailureEnabled() публичный Метод

public isStopOnFailureEnabled ( ) : boolean
Результат boolean
    public function isStopOnFailureEnabled()
    {
        return $this->config->isStopOnFailureEnabled() || $this->input->getOption('stop-on-failure');
    }

Usage Example

Пример #1
0
 /**
  * @param ExampleEvent $event
  *
  * @throws \PhpSpec\Exception\Example\StopOnFailureException
  */
 public function afterExample(ExampleEvent $event)
 {
     if (!$this->io->isStopOnFailureEnabled()) {
         return;
     }
     if ($event->getResult() === ExampleEvent::FAILED || $event->getResult() === ExampleEvent::BROKEN) {
         throw new StopOnFailureException('Example failed', 0, null, $event->getResult());
     }
 }
All Usage Examples Of PhpSpec\Console\ConsoleIO::isStopOnFailureEnabled