ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AllowedAttributesTest.php
Go to the documentation of this file.
1<?php
3
5use PHPUnit\Framework\TestCase;
6
10class AllowedAttributesTest extends TestCase
11{
12
16 protected $class;
17
21 public function setUp()
22 {
23 $this->class = new AllowedAttributes();
24 }
25
30 {
31 $this->assertInstanceOf('enshrined\svgSanitize\data\AttributeInterface', $this->class);
32 }
33
37 public function testThatItReturnsAnArray()
38 {
40
41 $this->assertInternalType('array', $result);
42 }
43}
$result
An exception for terminatinating execution or to throw for unit testing.
testThatItReturnsAnArray()
Test that an array is returned.
testItImplementsTheInterface()
Test that the class implements the interface.
static getAttributes()
Returns an array of attributes.