PHPSpec2\Prophet\ObjectProphet::beConstructedWith PHP Method

beConstructedWith() public method

public beConstructedWith ( )
    public function beConstructedWith()
    {
        if (null === $this->subject) {
            throw new BehaviorException('You can not set object arguments. Behavior subject is null.');
        }
        if (!$this->subject instanceof LazySubjectInterface) {
            throw new BehaviorException('You can not set object arguments. Behavior subject is already initialized.');
        }
        $this->subject->setConstructorArguments($this->unwrapper->unwrapAll(func_get_args()));
    }