Index: trunk/phase3/includes/WebRequest.php |
— | — | @@ -624,7 +624,8 @@ |
625 | 625 | public function response() { |
626 | 626 | /* Lazy initialization of response object for this request */ |
627 | 627 | if ( !is_object( $this->_response ) ) { |
628 | | - $this->_response = new WebResponse; |
| 628 | + $class = ( $this instanceof FauxRequest ) ? 'FauxResponse' : 'WebResponse'; |
| 629 | + $this->_response = new $class(); |
629 | 630 | } |
630 | 631 | return $this->_response; |
631 | 632 | } |
— | — | @@ -779,12 +780,4 @@ |
780 | 781 | public function isPathInfoBad() { |
781 | 782 | return false; |
782 | 783 | } |
783 | | - |
784 | | - public function response() { |
785 | | - /* Lazy initialization of response object for this request */ |
786 | | - if ( !is_object( $this->response ) ) { |
787 | | - $this->response = new FauxResponse; |
788 | | - } |
789 | | - return $this->response; |
790 | | - } |
791 | 784 | } |