FauxRequest now has empty data per default
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 9 Jan 2012 10:42:44 +0000 (10:42 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 9 Jan 2012 10:42:44 +0000 (10:42 +0000)
includes/WebRequest.php

index 65fe0c7..af47d60 100644 (file)
@@ -1199,7 +1199,7 @@ class FauxRequest extends WebRequest {
         * @param $wasPosted Bool: whether to treat the data as POST
         * @param $session Mixed: session array or null
         */
-       public function __construct( $data, $wasPosted = false, $session = null ) {
+       public function __construct( $data = array(), $wasPosted = false, $session = null ) {
                if( is_array( $data ) ) {
                        $this->data = $data;
                } else {