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
     * @dataProvider remote_resource_data_provider
35
     * @dataProvider remote_resource_data_provider
36
     * @param string $url the url of the resource.
36
     * @param string $url the url of the resource.
37
     * @param string $metadata the resource metadata like name, description, etc.
37
     * @param string $metadata the resource metadata like name, description, etc.
38
     * @param string $expectedextension the extension we expect to find when querying the remote resource.
38
     * @param string $expectedextension the extension we expect to find when querying the remote resource.
39
     */
39
     */
40
    public function test_getters($url, $metadata, $expectedextension) {
40
    public function test_getters($url, $metadata, $expectedextension): void {
41
        $this->resetAfterTest();
41
        $this->resetAfterTest();
Línea 42... Línea 42...
42
 
42
 
Línea 43... Línea 43...
43
        $remoteres = new remote_resource(new \curl(), new url($url), $metadata);
43
        $remoteres = new remote_resource(new \curl(), new url($url), $metadata);
Línea 75... Línea 75...
75
    }
75
    }
Línea 76... Línea 76...
76
 
76
 
77
    /**
77
    /**
78
     * Test confirming the network based operations of a remote_resource.
78
     * Test confirming the network based operations of a remote_resource.
79
     */
79
     */
80
    public function test_network_features() {
80
    public function test_network_features(): void {
81
        $url = $this->getExternalTestFileUrl('/test.html');
81
        $url = $this->getExternalTestFileUrl('/test.html');
Línea 82... Línea 82...
82
        $nonexistenturl = $this->getExternalTestFileUrl('/test.htmlzz');
82
        $nonexistenturl = $this->getExternalTestFileUrl('/test.htmlzz');
83
 
83