mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Fixed failing HttpSocket tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6751 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b9cfc9ecf3
commit
9097b25111
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ class HttpSocketTest extends UnitTestCase {
|
||||||
|
|
||||||
$this->Socket->reset();
|
$this->Socket->reset();
|
||||||
$serverResponse = "HTTP/1.x 200 OK\r\nSet-Cookie: foo=bar\r\nDate: Mon, 16 Apr 2007 04:14:16 GMT\r\nServer: CakeHttp Server\r\nContent-Type: text/html\r\n\r\n<h1>This is a cookie test!</h1>";
|
$serverResponse = "HTTP/1.x 200 OK\r\nSet-Cookie: foo=bar\r\nDate: Mon, 16 Apr 2007 04:14:16 GMT\r\nServer: CakeHttp Server\r\nContent-Type: text/html\r\n\r\n<h1>This is a cookie test!</h1>";
|
||||||
unset($this->Socket->_mock->_return_sequence['read']);
|
unset($this->Socket->_mock->_actions->_at['read']);
|
||||||
$this->Socket->_mock->_call_counts['read'] = 0;
|
$this->Socket->_mock->_call_counts['read'] = 0;
|
||||||
$this->Socket->setReturnValueAt(0, 'read', $serverResponse);
|
$this->Socket->setReturnValueAt(0, 'read', $serverResponse);
|
||||||
$this->Socket->connected = true;
|
$this->Socket->connected = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue