BrowscapPHP\Exception\InvalidArgumentException::oneOfCommandArguments PHP Метод

oneOfCommandArguments() публичный статический Метод

public static oneOfCommandArguments ( ) : InvalidArgumentException
Результат InvalidArgumentException
    public static function oneOfCommandArguments()
    {
        return new static(sprintf('One of the command arguments "%s" is required', implode('", "', func_get_args())));
    }

Usage Example

 /**
  *
  */
 public function testOneOfCommandArguments()
 {
     /** @var \BrowscapPHP\Exception\InvalidArgumentException $exception */
     $exception = InvalidArgumentException::oneOfCommandArguments('http://example.org', 'Uri not reachable');
     self::assertInstanceOf('\\BrowscapPHP\\Exception\\InvalidArgumentException', $exception);
     self::assertSame('One of the command arguments "http://example.org", "Uri not reachable" is required', $exception->getMessage());
 }
All Usage Examples Of BrowscapPHP\Exception\InvalidArgumentException::oneOfCommandArguments
InvalidArgumentException