Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

(no description)

File Size: 196 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SkipPassedController:: (7 methods):
  __construct()
  configure()
  execute()
  collectPassedScenario()
  writeCache()
  generateKey()
  getFileName()


Class: SkipPassedController  - X-Ref

Caches passed scenarios and skip only them if `--skip-passed` option provided.

__construct(EventDispatcherInterface $eventdispatcher, $cachepath, $basepath)   X-Ref
Initializes controller.

param: EventDispatcherInterface $eventdispatcher
param: null|string              $cachepath
param: string                   $basepath

configure(Command $command)   X-Ref
Configures command to be executable by the controller.

param: Command $command

execute(InputInterface $input, OutputInterface $output)   X-Ref
Executes controller.

param: InputInterface  $input
param: OutputInterface $output
return: null|integer

collectPassedScenario(AfterScenarioTested $event)   X-Ref
Records scenario if it is passed.

param: AfterScenarioTested $event

writeCache()   X-Ref
Writes passed scenarios cache.


generateKey(InputInterface $input)   X-Ref
Generates cache key.

param: InputInterface $input
return: string

getFileName()   X-Ref
Returns cache filename (if exists).

return: null|string