Public Member Functions | |
| getReport () | |
| strnpos ($haystack, $needle, $occurance, $pos=0) | |
| parseURL ($url) | |
| completeURLs ($HTML, $url) | |
Definition at line 27 of file reporter.demo.php.
| reportDemo::completeURLs | ( | $ | HTML, | |
| $ | url | |||
| ) |
Turns all relative links to absolute links so that the page can be rendered correctly.
| string | $HTML A complete HTML document | |
| string | $url The absolute URL to the document |
Definition at line 106 of file reporter.demo.php.
References parseURL(), and strnpos().
Referenced by getReport().
| reportDemo::getReport | ( | ) |
The getReport method - we iterate through every test item and add additional attributes to build the report UI.
Definition at line 42 of file reporter.demo.php.
References completeURLs().
| reportDemo::parseURL | ( | $ | url | ) |
A helper function for completeURLs. Parses a URL into an the scheme, host, and path
| string | $url The URL to parse |
Definition at line 88 of file reporter.demo.php.
Referenced by completeURLs().
| reportDemo::strnpos | ( | $ | haystack, | |
| $ | needle, | |||
| $ | occurance, | |||
| $ | pos = 0 | |||
| ) |
Finds the final postion of a needle in the haystack
Definition at line 76 of file reporter.demo.php.
Referenced by completeURLs().
1.5.7.1