# mlsimport/6.0.5/tests/HelperFunctionsTest.php

MLSImport: IDX Plugin &amp; MLS Plugin for Real Estate Listings, version 6.0.5. 17 lines.

- Page: https://pluginprobe.com/plugins/mlsimport/6.0.5/code/tests/HelperFunctionsTest.php
- Raw: https://pluginprobe.com/plugins/mlsimport/6.0.5/raw/tests/HelperFunctionsTest.php
- Modified: 2025-06-09T07:19:24+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/mlsimport/6.0.5/code/tests/HelperFunctionsTest.php#L10-L20`.

```php
<?php
use PHPUnit\Framework\TestCase;

class HelperFunctionsTest extends TestCase {
    public function test_sanitize_multi_dimensional_array() {
        $input = [ 'k' => ' <b>v</b> ', 'n' => [ 'v' => "a\\b" ] ];
        $expected = [ 'k' => 'v', 'n' => [ 'v' => 'ab' ] ];
        $this->assertSame( $expected, mlsimport_sanitize_multi_dimensional_array( $input ) );
    }

    public function test_allowed_html_tags_contains_select() {
        $allowed = mlsimport_allowed_html_tags_content();
        $this->assertArrayHasKey( 'select', $allowed );
        $this->assertArrayHasKey( 'option', $allowed );
    }
}

```
