PhpSpec\Wrapper\Subject\WrappedObject::getArguments PHP Method

getArguments() public method

public getArguments ( ) : array
return array
    public function getArguments()
    {
        return $this->arguments;
    }

Usage Example

Esempio n. 1
0
 function it_delegates_throwing_method_not_found_exception_for_constructor(WrappedObject $wrappedObject, ExceptionFactory $exceptions, \stdClass $argument)
 {
     $obj = new ExampleClass();
     $wrappedObject->isInstantiated()->willReturn(false);
     $wrappedObject->getInstance()->willReturn(null);
     $wrappedObject->getArguments()->willReturn(array($argument));
     $wrappedObject->getClassName()->willReturn('spec\\PhpSpec\\Wrapper\\Subject\\ExampleClass');
     $exceptions->methodNotFound('spec\\PhpSpec\\Wrapper\\Subject\\ExampleClass', '__construct', array($argument))->willReturn(new \PhpSpec\Exception\Fracture\MethodNotFoundException('Method "__construct" not found.', $obj, '"ExampleClass::__construct"', array()))->shouldBeCalled();
     $this->shouldThrow('\\PhpSpec\\Exception\\Fracture\\MethodNotFoundException')->duringCall('__construct');
 }
All Usage Examples Of PhpSpec\Wrapper\Subject\WrappedObject::getArguments