PhpSpec\Wrapper\Unwrapper::unwrapAll PHP Method

unwrapAll() public method

public unwrapAll ( array $arguments ) : array
$arguments array
return array
    public function unwrapAll(array $arguments)
    {
        if (null === $arguments) {
            return array();
        }
        return array_map(array($this, 'unwrapOne'), $arguments);
    }

Usage Example

Beispiel #1
0
 /**
  * @param string $classname
  * @param array  $arguments
  *
  * @throws \PhpSpec\Exception\Wrapper\SubjectException
  */
 public function beAnInstanceOf($classname, array $arguments = array())
 {
     if (!is_string($classname)) {
         throw new SubjectException(sprintf('Behavior subject classname should be a string, %s given.', $this->presenter->presentValue($classname)));
     }
     $this->classname = $classname;
     $unwrapper = new Unwrapper();
     $this->arguments = $unwrapper->unwrapAll($arguments);
     $this->isInstantiated = false;
 }
All Usage Examples Of PhpSpec\Wrapper\Unwrapper::unwrapAll