Example #1
0
 function it_should_run_all_after_running_features_passed(ContainerInterface $container, Runner $runner, Process $process, BehatPlugin $plugin, Filesystem $filesystem)
 {
     $filesystem->putFileContents($this->rerunFile, Argument::any())->willReturn();
     $options = $this->options;
     $options['all_after_pass'] = true;
     $plugin->getOptions()->willReturn($options);
     $this->setContainer($container);
     $runner->run(Argument::any())->shouldBeCalled()->willReturn($process);
     $process->getExitCode()->willReturn(0);
     $paths = array('some.feature');
     $results = $this->run($paths);
     $results->shouldContainMessage('some.feature');
     $results->shouldContainMessage(Inspector::RUN_ALL_SUCCESS_MESSAGE);
 }