| 1 |
<?php |
| 2 |
|
| 3 |
use \enshrined\svgSanitize\data\AllowedAttributes; |
| 4 |
use PHPUnit\Framework\TestCase; |
| 5 |
|
| 6 |
/** |
| 7 |
* Class AllowedAttributesTest |
| 8 |
*/ |
| 9 |
class AllowedAttributesTest extends TestCase |
| 10 |
{ |
| 11 |
|
| 12 |
/** |
| 13 |
* @var AllowedAttributes |
| 14 |
*/ |
| 15 |
protected $class; |
| 16 |
|
| 17 |
/** |
| 18 |
* Set up the test class |
| 19 |
*/ |
| 20 |
public function setUp() |
| 21 |
{ |
| 22 |
$this->class = new AllowedAttributes(); |
| 23 |
} |
| 24 |
|
| 25 |
/** |
| 26 |
* Test that the class implements the interface |
| 27 |
*/ |
| 28 |
public function testItImplementsTheInterface() |
| 29 |
{ |
| 30 |
$this->assertInstanceOf('enshrined\svgSanitize\data\AttributeInterface', $this->class); |
| 31 |
} |
| 32 |
|
| 33 |
/** |
| 34 |
* Test that an array is returned |
| 35 |
*/ |
| 36 |
public function testThatItReturnsAnArray() |
| 37 |
{ |
| 38 |
$result = AllowedAttributes::getAttributes(); |
| 39 |
|
| 40 |
$this->assertInternalType('array', $result); |
| 41 |
} |
| 42 |
} |