File "AllowedTagsTest.php"

Full Path: /home/vantageo/public_html/cache/cache/cache/cache/cache/.wp-cli/wp-content/plugins/svg-support/vendor/enshrined/svg-sanitize/tests/AllowedTagsTest.php
File size: 658 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace enshrined\svgSanitize\Tests;

use enshrined\svgSanitize\data\AllowedTags;
use PHPUnit\Framework\TestCase;

/**
 * Class AllowedTagsTest
 */
class AllowedTagsTest extends TestCase
{
    /**
     * Test that the class implements the interface
     */
    public function testItImplementsTheInterface()
    {
        $class = new AllowedTags();
        self::assertInstanceOf('enshrined\svgSanitize\data\TagInterface', $class);
    }

    /**
     * Test that an array is returned
     */
    public function testThatItReturnsAnArray()
    {
        $result = AllowedTags::getTags();
        self::assertSame('array', gettype($result));
    }
}