AllowedAttributesTest.php 817 B

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