Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 35... Línea 35...
35
     * @param string $urlstring The full URL string
35
     * @param string $urlstring The full URL string
36
     * @param string $host the expected host component of the URL.
36
     * @param string $host the expected host component of the URL.
37
     * @param string $path the expected path component of the URL.
37
     * @param string $path the expected path component of the URL.
38
     * @param bool $exception whether or not an exception is expected during construction.
38
     * @param bool $exception whether or not an exception is expected during construction.
39
     */
39
     */
40
    public function test_parsing($urlstring, $host, $path, $exception) {
40
    public function test_parsing($urlstring, $host, $path, $exception): void {
41
        if ($exception) {
41
        if ($exception) {
42
            $this->expectException(\coding_exception::class);
42
            $this->expectException(\coding_exception::class);
43
            $url = new url($urlstring);
43
            $url = new url($urlstring);
44
            return;
44
            return;
45
        }
45
        }