From 18c23ef88d4c68b6455e1e5341f6db6de46eb401 Mon Sep 17 00:00:00 2001 From: coderstephen Date: Fri, 7 Aug 2015 01:38:53 -0500 Subject: [PATCH] Update channel test to use createSocketPair --- tests/Sync/ChannelTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Sync/ChannelTest.php b/tests/Sync/ChannelTest.php index 7bfc89b..7a5c2cf 100644 --- a/tests/Sync/ChannelTest.php +++ b/tests/Sync/ChannelTest.php @@ -10,7 +10,7 @@ class ChannelTest extends TestCase { public function testCreate() { - list($a, $b) = Channel::create(); + list($a, $b) = Channel::createSocketPair(); $this->assertInternalType('resource', $a); $this->assertInternalType('resource', $b); @@ -18,7 +18,7 @@ class ChannelTest extends TestCase public function testClose() { - list($a, $b) = Channel::create(); + list($a, $b) = Channel::createSocketPair(); $a = new Channel($a); $b = new Channel($b); @@ -35,7 +35,7 @@ class ChannelTest extends TestCase public function testSendReceive() { Coroutine\create(function () { - list($a, $b) = Channel::create(); + list($a, $b) = Channel::createSocketPair(); $a = new Channel($a); $b = new Channel($b); @@ -52,7 +52,7 @@ class ChannelTest extends TestCase */ public function testThreadTransfer() { - list($a, $b) = Channel::create(); + list($a, $b) = Channel::createSocketPair(); $a = new Channel($a); $b = new Channel($b);