Phue\Test\BridgeTest::testSetProxyPort PHP Method

testSetProxyPort() public method

Test: Setting proxy port
public testSetProxyPort ( )
    public function testSetProxyPort()
    {
        // Expect client's sendCommand usage
        $this->mockClient->expects($this->once())->method('sendCommand')->with($this->isInstanceOf('\\Phue\\Command\\SetBridgeConfig'))->will($this->returnValue($this->bridge));
        // Ensure setProxyAddress returns self
        $this->assertEquals($this->bridge, $this->bridge->setProxyPort(79));
        // Ensure new value can be retrieved by setProxyPort
        $this->assertEquals(79, $this->bridge->getProxyPort());
    }