Skip to content

Commit

Permalink
Switch to using listen helpers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsw committed Jan 6, 2018
1 parent d3843a4 commit 1660572
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Test/AssertionHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

/**
Expand All @@ -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
);
}

/**
Expand Down

0 comments on commit 1660572

Please sign in to comment.