/** * 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()); }
/** * 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()); }