Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
add method setPortsetProxyPort()
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Heitz committed Jul 20, 2016
1 parent b69423b commit d3ae333
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/BrowserMob.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ public function getProxyPort()
return $this->bmp->port;
}

/**
* Set current proxy port to use on BrowserMobProxy
*
* @param integer $port Proxy port
*/
public function setProxyPort($port)
{
$prop = new \ReflectionProperty($this->bmp, 'port');
$prop->setAccessible(true);
$prop->setValue($this->bmp, $port);
}

/**
* Open a new proxy on BrowserMobProxy
*
Expand Down
1 change: 1 addition & 0 deletions tests/_data/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ubuntu:14.04
MAINTAINER Greg Heitz <g.heitz@yahoo.fr>

ENV DEBIAN_FRONTEND noninteractive

Expand Down

0 comments on commit d3ae333

Please sign in to comment.