Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.12 KB

File metadata and controls

47 lines (31 loc) · 1.12 KB

Meritoo Common Library

Common and useful classes, methods, exceptions etc.

Uri

Useful methods related to uri

Class: Meritoo\Common\Utilities\Uri File: src/Utilities/Uri.php

buildUrl(string, string ...): string

Builds url with given root url and parts of url (concatenates them using "/")

Arguments
  • string $rootUrl - Protocol and domain (or domain only)
  • string ...$urlParts - Parts of url that will be concatenated with the rool url by "/"
Examples
  • rootUrl: "http://my.example"
  • urlParts: "" (an empty string)
  • result: "http://my.example"
  • rootUrl: "http://my.example"
  • urlParts: "/test", "/123"
  • result: "http://my.example/test/123"

More

  1. Base test case (with common methods and data providers)
  2. Collection of elements
  3. Templates
  4. Exceptions
  5. Static methods
    1. Arrays
    2. Regex
    3. Uri
  6. Value Objects

‹ Back to Readme