|
|
@@ -51,6 +51,12 @@ require_once 'PHPUnit/Framework/TestCase.php';
|
|
|
*/
|
|
|
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 @@ class Zend_Uri_HttpTest extends PHPUnit_Framework_TestCase
|
|
|
'http://example.com/?q=^',
|
|
|
'http://example.com/?q=`',
|
|
|
);
|
|
|
-
|
|
|
+
|
|
|
foreach ($unwise as $uri) {
|
|
|
$this->assertFalse(Zend_Uri::check($uri), "failed for URI $uri");
|
|
|
}
|