MOON
Server: Apache
System: Linux res.emeff.ca 3.10.0-962.3.2.lve1.5.24.10.el7.x86_64 #1 SMP Wed Mar 20 07:36:02 EDT 2019 x86_64
User: accemeff (1004)
PHP: 7.0.33
Disabled: NONE
Upload Files
File: /home/accemeff/vendor/enshrined/svg-sanitize/tests/AllowedAttributesTest.php
<?php

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

/**
 * Class AllowedAttributesTest
 */
class AllowedAttributesTest extends TestCase
{

    /**
     * @var AllowedAttributes
     */
    protected $class;

    /**
     * Set up the test class
     */
    public function setUp()
    {
        $this->class = new AllowedAttributes();
    }

    /**
     * Test that the class implements the interface
     */
    public function testItImplementsTheInterface()
    {
        $this->assertInstanceOf('enshrined\svgSanitize\data\AttributeInterface', $this->class);
    }

    /**
     * Test that an array is returned
     */
    public function testThatItReturnsAnArray()
    {
        $result = AllowedAttributes::getAttributes();

        $this->assertInternalType('array', $result);
    }
}