PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / tests / HTMLPurifier / AttrTypesTest.php
blob4881ac7b61af49b542f52dada6708bed49bb6716
1 <?php
3 class HTMLPurifier_AttrTypesTest extends HTMLPurifier_Harness
6 public function test_get()
8 $types = new HTMLPurifier_AttrTypes();
10 $this->assertIdentical(
11 $types->get('CDATA'),
12 new HTMLPurifier_AttrDef_Text()
15 $this->expectError('Cannot retrieve undefined attribute type foobar');
16 $types->get('foobar');
18 $this->assertIdentical(
19 $types->get('Enum#foo,bar'),
20 new HTMLPurifier_AttrDef_Enum(array('foo', 'bar'))
27 // vim: et sw=4 sts=4