ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
AllowedAttributesTest.php
Go to the documentation of this file.
1
<?php
2
namespace
enshrined\svgSanitize\Tests
;
3
4
use
enshrined\svgSanitize\data\AllowedAttributes
;
5
use
PHPUnit\Framework\TestCase
;
6
10
class
AllowedAttributesTest
extends
TestCase
11
{
12
16
protected
$class
;
17
21
public
function
setUp
()
22
{
23
$this->
class
= new AllowedAttributes();
24
}
25
29
public
function
testItImplementsTheInterface
()
30
{
31
$this->assertInstanceOf(
'enshrined\svgSanitize\data\AttributeInterface'
, $this->
class
);
32
}
33
37
public
function
testThatItReturnsAnArray
()
38
{
39
$result
=
AllowedAttributes::getAttributes
();
40
41
$this->assertInternalType(
'array'
,
$result
);
42
}
43
}
$result
$result
Definition:
CleanUpTest.php:463
AllowedAttributes
enshrined\svgSanitize\Tests\AllowedAttributesTest\testThatItReturnsAnArray
testThatItReturnsAnArray()
Test that an array is returned.
Definition:
AllowedAttributesTest.php:37
enshrined\svgSanitize\Tests
Definition:
AllowedAttributesTest.php:2
enshrined\svgSanitize\Tests\AllowedAttributesTest\testItImplementsTheInterface
testItImplementsTheInterface()
Test that the class implements the interface.
Definition:
AllowedAttributesTest.php:29
enshrined\svgSanitize\data\AllowedAttributes\getAttributes
static getAttributes()
Returns an array of attributes.
Definition:
AllowedAttributes.php:20
enshrined\svgSanitize\Tests\AllowedAttributesTest\$class
$class
Definition:
AllowedAttributesTest.php:16
enshrined\svgSanitize\Tests\AllowedAttributesTest\setUp
setUp()
Set up the test class.
Definition:
AllowedAttributesTest.php:21
TestCase
enshrined\svgSanitize\Tests\AllowedAttributesTest
Class AllowedAttributesTest.
Definition:
AllowedAttributesTest.php:10
libs
composer
vendor
enshrined
svg-sanitize
tests
AllowedAttributesTest.php
Generated on Sat Jan 18 2025 19:01:01 for ILIAS by
1.8.13 (using
Doxyfile
)