[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/behat/classes/ -> behat_context_helper.php (summary)

Helper to initialise behat contexts from moodle code.

Copyright: 2014 David Monllaó
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 111 lines (3 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

behat_context_helper:: (3 methods):
  set_session()
  get()
  init_context()


Class: behat_context_helper  - X-Ref

Helper to get behat contexts.

set_session(Session $session)   X-Ref
Sets the browser session.

param: Session $session
return: void

get($classname)   X-Ref
Gets the required context.

Getting a context you get access to all the steps
that uses direct API calls; steps returning step chains
can not be executed like this.

param: string $classname Context identifier (the class name).
return: behat_base

init_context($classname)   X-Ref
Initializes the required context.

param: string $classname
return: bool



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1