Allow Context subclasses in acceptance tests to access parent actor

Although uncommon, in some cases a Context may need to be extended (for
example, to override a step defined in the server with a specific
behaviour in the acceptance tests of an app); in those cases the
subclass should be able to access the actor attribute defined in the
Context it is extending.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2019-08-08 10:54:12 +02:00
parent 6db355848b
commit e5a305b9d8

View file

@ -26,7 +26,7 @@ trait ActorAware {
/**
* @var Actor
*/
private $actor;
protected $actor;
/**
* @param Actor $actor