diff --git a/test/HttpTest.php b/test/HttpTest.php index b74be359a..e19173d38 100644 --- a/test/HttpTest.php +++ b/test/HttpTest.php @@ -51,6 +51,12 @@ */ class Zend_Uri_HttpTest extends PHPUnit_Framework_TestCase { + + public function setup() + { + Zend_Uri::setConfig(array('allow_unwise' => false)); + } + /** * Tests for proper URI decomposition */ @@ -236,7 +242,7 @@ public function testExceptionUnwiseQueryString() 'http://example.com/?q=^', 'http://example.com/?q=`', ); - + foreach ($unwise as $uri) { $this->assertFalse(Zend_Uri::check($uri), "failed for URI $uri"); }