This question shows research effort; it is useful and clear
5
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我想获得对象的实际返回值而不是可链接的对象。
class Foo
{
public $attribute = 'data';
}
class FooSpec extends ObjectBehavior
{
public function it_is_a_test()
{
$attribute = $this->attribute; // I want to get 'data'
}
}