# wp-optimize/3.2.5/vendor/rosell-dk/webp-convert/tests/Convert/Exposers/VipsExposer.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 3.2.5. 40 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/3.2.5/code/vendor/rosell-dk/webp-convert/tests/Convert/Exposers/VipsExposer.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/3.2.5/raw/vendor/rosell-dk/webp-convert/tests/Convert/Exposers/VipsExposer.php
- Modified: 2022-06-03T18:20:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-optimize/3.2.5/code/vendor/rosell-dk/webp-convert/tests/Convert/Exposers/VipsExposer.php#L10-L20`.

```php
<?php

namespace WebPConvert\Tests\Convert\Exposers;

use WebPConvert\Convert\Converters\Vips;

/**
 * Class for exposing otherwise unaccessible methods of AbstractConverter,
 * - so they can be tested
 *
 * TODO: expose and test more methods! (and make more methods private/protected in AbstractConverter)
 */
class VipsExposer extends AbstractConverterExposer {

    public function __construct($vips)
    {
        parent::__construct($vips);
    }

    public function createParamsForVipsWebPSave()
    {
        return $this->callPrivateFunction('createParamsForVipsWebPSave', null);
    }

    public function createImageResource()
    {
        return $this->callPrivateFunction('createImageResource', null);
    }

    public function doActualConvert()
    {
        return $this->callPrivateFunction('doActualConvert', null);
    }

    public function webpsave($im, $options)
    {
        return $this->callPrivateFunction('webpsave', null, $im, $options);
    }
}

```
