olbrich / cuke4php

a wire protocol server in php for cucumber

Home Page:https://github.com/olbrich/cuke4php/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

better support for saving information for sharing between step definitions

olbrich opened this issue · comments

storing stuff into the globals array is cumbersome...

$this->aGlobals['key'] = value;

A better pattern would be to use magic settters and getters...

$this->key = value;

Already a feature... perhaps not well documented, but it works.

You mean we don't have to use $this->aGlobals anymore?

as of 0.9.3, you can use magic setters, getters, and isset.

Ah I notice that now in the wiki. Nice work. Thanks!