| [ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Behat arguments transformations. This methods are used by Behat CLI command.
| Copyright: | 2012 David Monllaó |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 126 lines (4 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 1 file lib/behat/behat_base.php |
behat_transformations:: (4 methods):
arg_replace_slashes()
arg_replace_nasty_strings()
tablenode_transformations()
replace_nasty_strings()
Class: behat_transformations - X-Ref
Transformations to apply to steps arguments.| arg_replace_slashes($string) X-Ref |
| Removes escaped argument delimiters. We use double quotes as arguments delimiters and to add the " as part of an argument we escape it with a backslash, this method removes this backslash. param: string $string return: string The string with the arguments fixed. |
| arg_replace_nasty_strings($argument) X-Ref |
| Replaces $NASTYSTRING vars for a nasty string. param: string $argument The whole argument value. return: string |
| tablenode_transformations(TableNode $tablenode) X-Ref |
| Transformations for TableNode arguments. Transformations applicable to TableNode arguments should also be applied, adding them in a different method for Behat API restrictions. param: TableNode $tablenode return: TableNode The transformed table |
| replace_nasty_strings($string) X-Ref |
| Replaces $NASTYSTRING vars for a nasty string. Method reused by TableNode tranformation. param: string $string return: string |
| Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |