PhpSpec\Exception\ExceptionFactory::methodNotVisible PHP Метод

methodNotVisible() публичный Метод

public methodNotVisible ( string $classname, string $method, array $arguments = [] ) : Fracture\MethodNotVisibleException
$classname string
$method string
$arguments array
Результат Fracture\MethodNotVisibleException
    public function methodNotVisible($classname, $method, array $arguments = array())
    {
        $instantiator = new Instantiator();
        $subject = $instantiator->instantiate($classname);
        $message = sprintf('Method %s not visible.', $this->presenter->presentString($classname . '::' . $method));
        return new Fracture\MethodNotVisibleException($message, $subject, $method, $arguments);
    }

Usage Example

Пример #1
0
 /**
  * @param string $method
  * @param  array                                                                                                     $arguments
  * @return \PhpSpec\Exception\Fracture\MethodNotFoundException|\PhpSpec\Exception\Fracture\MethodNotVisibleException
  */
 private function methodNotFound($method, array $arguments = array())
 {
     $className = $this->wrappedObject->getClassName();
     if (!method_exists($className, $method)) {
         return $this->exceptionFactory->methodNotFound($className, $method, $arguments);
     }
     return $this->exceptionFactory->methodNotVisible($className, $method, $arguments);
 }
All Usage Examples Of PhpSpec\Exception\ExceptionFactory::methodNotVisible