Ejemplo n.º 1
0
 /**
  * Ensures that setAttributesAllowed() follows expected behavior when provided an array of attributes
  *
  * @return void
  */
 public function testSetAttributesAllowedArray()
 {
     $attributesAllowed = array('clAss', 4 => 'inT', 'ok' => 'String', null);
     $this->_filter->setAttributesAllowed($attributesAllowed);
     $attributesAllowedExpected = array('class' => null, 'int' => null, 'string' => null);
     $this->assertEquals($attributesAllowedExpected, $this->_filter->getAttributesAllowed());
 }
Ejemplo n.º 2
0
 /**
  * Ensures that setAttributesAllowed() follows expected behavior when provided a single tag
  *
  * @return void
  */
 public function testSetAttributesAllowedString()
 {
     $this->_filter->setAttributesAllowed('class');
     $this->assertEquals(array('class' => null), $this->_filter->getAttributesAllowed());
 }