ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
enshrined\svgSanitize\Tests\AllowedAttributesTest Class Reference

Class AllowedAttributesTest. More...

+ Inheritance diagram for enshrined\svgSanitize\Tests\AllowedAttributesTest:
+ Collaboration diagram for enshrined\svgSanitize\Tests\AllowedAttributesTest:

Public Member Functions

 setUp ()
 Set up the test class. More...
 
 testItImplementsTheInterface ()
 Test that the class implements the interface. More...
 
 testThatItReturnsAnArray ()
 Test that an array is returned. More...
 

Protected Attributes

 $class
 

Detailed Description

Class AllowedAttributesTest.

Definition at line 10 of file AllowedAttributesTest.php.

Member Function Documentation

◆ setUp()

enshrined\svgSanitize\Tests\AllowedAttributesTest::setUp ( )

Set up the test class.

Definition at line 21 of file AllowedAttributesTest.php.

22  {
23  $this->class = new AllowedAttributes();
24  }

◆ testItImplementsTheInterface()

enshrined\svgSanitize\Tests\AllowedAttributesTest::testItImplementsTheInterface ( )

Test that the class implements the interface.

Definition at line 29 of file AllowedAttributesTest.php.

30  {
31  $this->assertInstanceOf('enshrined\svgSanitize\data\AttributeInterface', $this->class);
32  }

◆ testThatItReturnsAnArray()

enshrined\svgSanitize\Tests\AllowedAttributesTest::testThatItReturnsAnArray ( )

Test that an array is returned.

Definition at line 37 of file AllowedAttributesTest.php.

References $result, and enshrined\svgSanitize\data\AllowedAttributes\getAttributes().

38  {
40 
41  $this->assertInternalType('array', $result);
42  }
$result
static getAttributes()
Returns an array of attributes.
+ Here is the call graph for this function:

Field Documentation

◆ $class

enshrined\svgSanitize\Tests\AllowedAttributesTest::$class
protected

Definition at line 16 of file AllowedAttributesTest.php.


The documentation for this class was generated from the following file: