From 16605728bf7e72b3080b44447b7f7cf76c9573f5 Mon Sep 17 00:00:00 2001 From: Adrian Parker Date: Sat, 6 Jan 2018 12:24:36 -0500 Subject: [PATCH] Switch to using listen helpers. --- src/Test/AssertionHelpers.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Test/AssertionHelpers.php b/src/Test/AssertionHelpers.php index 6e3fbbf..1dce8a2 100644 --- a/src/Test/AssertionHelpers.php +++ b/src/Test/AssertionHelpers.php @@ -15,8 +15,10 @@ trait AssertionHelpers */ protected function assertProxyAvailable(Proxy $proxy, $message = null) { - list($ip, $port) = explode(":", $proxy->getListen()); - $this->assertConnection(["ip" => $ip, "port" => $port], $message); + $this->assertConnection( + ["ip" => $proxy->getListenIp(), "port" => $proxy->getListenPort()], + $message + ); } /** @@ -25,8 +27,10 @@ protected function assertProxyAvailable(Proxy $proxy, $message = null) */ protected function assertProxyUnavailable(Proxy $proxy, $message = null) { - list($ip, $port) = explode(":", $proxy->getListen()); - $this->assertConnection(["ip" => $ip, "port" => $port, "match" => false], $message); + $this->assertConnection( + ["ip" => $proxy->getListenIp(), "port" => $proxy->getListenPort(), "match" => false], + $message + ); } /**