Missing @return
[htmlpurifier.git] / tests / HTMLPurifier / HTMLModule / SafeScriptingTest.php
blob20972975a15fb2516984cfa419783b608d4488a5
1 <?php
3 class HTMLPurifier_HTMLModule_SafeScriptingTest extends HTMLPurifier_HTMLModuleHarness
6 public function setUp()
8 parent::setUp();
9 $this->config->set('HTML.SafeScripting', array('http://localhost/foo.js'));
12 public function testMinimal()
14 $this->assertResult(
15 '<script></script>',
20 public function testGood()
22 $this->assertResult(
23 '<script type="text/javascript" src="http://localhost/foo.js" />'
27 public function testBad()
29 $this->assertResult(
30 '<script type="text/javascript" src="http://localhost/foobar.js" />',
37 // vim: et sw=4 sts=4