Prepended constants with C_ to avoid reserved words as per https://www.php.net/manual...
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / HTMLModule / ObjectTest.php
blob97ecaab3426ad960eba9f0602c215b6b0c711ce7
1 <?php
3 class HTMLPurifier_HTMLModule_ObjectTest extends HTMLPurifier_HTMLModuleHarness
6 public function setUp()
8 parent::setUp();
9 $this->config->set('HTML.Trusted', true);
12 public function testDefaultRemoval()
14 $this->config->set('HTML.Trusted', false);
15 $this->assertResult(
16 '<object></object>', ''
20 public function testMinimal()
22 $this->assertResult('<object></object>');
25 public function testStandardUseCase()
27 $this->assertResult(
28 '<object type="video/x-ms-wmv" data="http://domain.com/video.wmv" width="320" height="256">
29 <param name="src" value="http://domain.com/video.wmv" />
30 <param name="autostart" value="false" />
31 <param name="controller" value="true" />
32 <param name="pluginurl" value="http://www.microsoft.com/Windows/MediaPlayer/" />
33 <a href="http://www.microsoft.com/Windows/MediaPlayer/">Windows Media player required</a>
34 </object>'
38 // more test-cases?
42 // vim: et sw=4 sts=4