From 086a9cd97ff3d75f299d5f62c6ba26f869cfd7b1 Mon Sep 17 00:00:00 2001 From: nate Date: Thu, 22 Mar 2007 00:49:34 +0000 Subject: [PATCH] Updating Socket test to account for differences in local machine hosts files (Ticket #2053) git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4646 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/socket.test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/tests/cases/libs/socket.test.php b/cake/tests/cases/libs/socket.test.php index 1e4d6219a..f23ca6d0d 100644 --- a/cake/tests/cases/libs/socket.test.php +++ b/cake/tests/cases/libs/socket.test.php @@ -49,9 +49,9 @@ class SocketTest extends UnitTestCase { function testSocketHost() { $this->assertEqual($this->socket->address(), '127.0.0.1'); - $this->assertEqual($this->socket->addresses(), array('127.0.0.1')); $this->assertEqual($this->socket->host(), 'localhost'); $this->assertEqual($this->socket->lastError(), null); + $this->assertTrue(in_array('127.0.0.1', $this->socket->addresses())); } function testSocketWriting() {