From 5ee0e7c6aa637e650eb1778ccfd96c2166ff06b1 Mon Sep 17 00:00:00 2001 From: ralph Date: Mon, 18 Jan 2010 16:24:36 +0000 Subject: [PATCH] ZF-8809 - Fixed issue with HttpTest not resetting Zend_Uri's static state - Fixed BarcodeTest to use safer values and fixed the expected failure message git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20382 44c647ce-9c0f-0410-b52a-842ac1e357ba --- test/HttpTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"); }