ComponentPageUrlMatcher
class ComponentPageUrlMatcher implements IPageUrlMatcher (View source)
Checks, that page is opened by comparing individual url components.
Methods
float
getPriority()
Returns matcher priority.
string
getAnnotationName()
Returns the name of the annotation.
string
getAnnotationClass()
Returns the FQCN of the annotation.
boolean
matches(string $url, array $annotations)
Matches the given url against the given annotations.
boolean
boolean
boolean
boolean
matchByProperty(MatchUrlComponentAnnotation $annotation, Parser $parser, string $property, string|null $component = null)
Matches property.
Expectation
shouldReceive(string $name)
No description
Details
at line 30
float
getPriority()
Returns matcher priority.
at line 40
string
getAnnotationName()
Returns the name of the annotation.
at line 50
string
getAnnotationClass()
Returns the FQCN of the annotation.
at line 63
boolean
matches(string $url, array $annotations)
Matches the given url against the given annotations.
at line 82
protected boolean
matchComponent(MatchUrlComponentAnnotation $annotation, string $url)
Matches components to url.
at line 104
protected boolean
matchParams(MatchUrlComponentAnnotation $annotation, Parser $parser)
Matches query params.
at line 122
protected boolean
matchSecure(MatchUrlComponentAnnotation $annotation, Parser $parser)
Matches secure option.
at line 142
protected boolean
matchByProperty(MatchUrlComponentAnnotation $annotation, Parser $parser, string $property, string|null $component = null)
Matches property.