From f9b8008a4ccae56009894e4052dba80752d562bc Mon Sep 17 00:00:00 2001 From: Tobias Sarnowski Date: Tue, 17 Apr 2012 17:27:27 +0200 Subject: BROKEN added enable/disable feature for plugins --- _testing/core/TestResponse.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 _testing/core/TestResponse.php (limited to '_testing/core/TestResponse.php') diff --git a/_testing/core/TestResponse.php b/_testing/core/TestResponse.php new file mode 100644 index 000000000..ed112b42e --- /dev/null +++ b/_testing/core/TestResponse.php @@ -0,0 +1,38 @@ +content = $content; + $this->headers = $headers; + } + + function getContent() { + return $this->content; + } + + function getHeaders() { + return $this->headers; + } + + /** + * Query the response for a JQuery compatible CSS selector + * + * @link https://code.google.com/p/phpquery/wiki/Selectors + * @param string selector + * @returns object a PHPQuery object + */ + function queryHTML($selector){ + if(is_null($this->pq)) $this->pq = phpQuery::newDocument($this->content); + return $this->pq->find($selector); + } +} -- cgit v1.2.3