PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.0.3.2
Adminify – White Label, Admin Menu Editor, Login Customizer v4.0.3.2
4.3.2 4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 All 165 releases
adminify / vendor / enshrined / svg-sanitize / tests / AllowedAttributesTest.php

AllowedAttributesTest.php in Adminify – White Label, Admin Menu Editor, Login Customizer 4.0.3.2, at vendor/enshrined/svg-sanitize/tests/AllowedAttributesTest.php

42 lines 831 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }