TestTimberImage::testUpSizing2Param PHP Méthode

testUpSizing2Param() public méthode

public testUpSizing2Param ( )
    function testUpSizing2Param()
    {
        $data = array();
        $file_loc = self::copyTestImage('stl.jpg');
        $upload_dir = wp_upload_dir();
        $new_file = TimberImageHelper::resize($upload_dir['url'] . '/stl.jpg', 500, 300, 'default', true);
        $location_of_image = TimberImageHelper::get_server_location($new_file);
        $size = getimagesize($location_of_image);
        $this->assertEquals(500, $size[0]);
        $this->assertEquals(300, $size[1]);
    }