makeLookup() public method

Convenience function that generates a lookup table with boolean true as value.
public makeLookup ( string $list ) : array
$list string List of values to turn into a lookup
return array array equivalent of list
示例#1
0
 public function test_makeLookup()
 {
     $module = new HTMLPurifier_HTMLModule();
     $this->assertIdentical($module->makeLookup('foo'), array('foo' => true));
     $this->assertIdentical($module->makeLookup(array('foo')), array('foo' => true));
     $this->assertIdentical($module->makeLookup('foo', 'two'), array('foo' => true, 'two' => true));
     $this->assertIdentical($module->makeLookup(array('foo', 'two')), array('foo' => true, 'two' => true));
 }