behat debug / class property

从bootstrap/FeatureContext.php的命令入手,可以var_dump或者使用PrintMessage之类的命令,

今天发现一个好大的坑啊,一个类没有定义property $sites,然后在方法里用到了$this->sites,然后在其他地方竟然娶不到$this->sites,
请问这是为什么?

原文地址:https://www.cnblogs.com/qinqiu/p/9015410.html