# wp-optimize/3.2.5/vendor/rosell-dk/webp-convert/tests/Helpers/SanitizeTest.php

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

- Page: https://pluginprobe.com/plugins/wp-optimize/3.2.5/code/vendor/rosell-dk/webp-convert/tests/Helpers/SanitizeTest.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/3.2.5/raw/vendor/rosell-dk/webp-convert/tests/Helpers/SanitizeTest.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/Helpers/SanitizeTest.php#L10-L20`.

```php
<?php

namespace WebPConvert\Tests\Helpers;

use WebPConvert\Helpers\Sanitize;

use PHPUnit\Framework\TestCase;

/**
 * @coversDefaultClass WebPConvert\Helpers\Sanitize
 * @covers WebPConvert\Helpers\Sanitize
 */
class SanitizeTest extends TestCase
{

    /**
     * @covers ::removeNUL
     */
    public function testRemoveNUL()
    {
        $this->assertEquals(
            'a',
            Sanitize::removeNUL("a\0")
        );
    }

    /**
     * @covers ::removeStreamWrappers
     */
    public function testRemoveStreamWrappers()
    {
        $this->assertEquals(
            'dytdyt',
            Sanitize::removeStreamWrappers("phar://dytdyt")
        );
    }

}

```
