Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 33... Línea 33...
33
    /**
33
    /**
34
     * Test that the rotate_image() method does not rotate
34
     * Test that the rotate_image() method does not rotate
35
     * an image that is not supposed to be rotated.
35
     * an image that is not supposed to be rotated.
36
     * @covers ::rotate_image()
36
     * @covers ::rotate_image()
37
     */
37
     */
38
    public function test_rotate_image_does_not_rotate_image() {
38
    public function test_rotate_image_does_not_rotate_image(): void {
39
        global $CFG;
39
        global $CFG;
40
        $this->resetAfterTest();
40
        $this->resetAfterTest();
Línea 41... Línea 41...
41
 
41
 
42
        $filename = 'testimage.jpg';
42
        $filename = 'testimage.jpg';
Línea 62... Línea 62...
62
    /**
62
    /**
63
     * Test that the rotate_image() method rotates an image
63
     * Test that the rotate_image() method rotates an image
64
     * that is supposed to be rotated.
64
     * that is supposed to be rotated.
65
     * @covers ::rotate_image()
65
     * @covers ::rotate_image()
66
     */
66
     */
67
    public function test_rotate_image_rotates_image() {
67
    public function test_rotate_image_rotates_image(): void {
68
        global $CFG;
68
        global $CFG;
69
        $this->resetAfterTest();
69
        $this->resetAfterTest();
Línea 70... Línea 70...
70
 
70
 
71
        // This image was manually rotated to be upside down. Also, Orientation, ExifImageWidth
71
        // This image was manually rotated to be upside down. Also, Orientation, ExifImageWidth