Parser
class Parser (View source)
Parses url and returns components.
Properties
protected array | $components | The url components. |
Methods
__construct(string $url)
Constructor for Parser.
string
getComponent(string $name, string $default = '')
Get url component.
array
getComponents()
Gets the url components.
array
getParams()
Gets parsed query.
Expectation
shouldReceive(string $name)
No description
Details
at line 38
__construct(string $url)
Constructor for Parser.
at line 57
string
getComponent(string $name, string $default = '')
Get url component.
at line 67
array
getComponents()
Gets the url components.
at line 77
array
getParams()
Gets parsed query.