PHPSpec2\Loader\Node\Example::getSubject PHP Method

getSubject() public method

public getSubject ( )
    public function getSubject()
    {
        return $this->subject;
    }

Usage Example

Beispiel #1
0
 protected function createContext(Node\Example $example)
 {
     $function = $example->getFunction();
     $context = $function->getDeclaringClass()->newInstance();
     $context->setProphet(new Prophet\ObjectProphet(new LazyObject($example->getSubject()), $this->matchers, $this->unwrapper));
     return $context;
 }