send() public method

Send command
public send ( Client $client )
$client Phue\Client Phue Client
Example #1
0
 /**
  * Test: Set bridge config
  *
  * @covers \Phue\Command\SetBridgeConfig::__construct
  * @covers \Phue\Command\SetBridgeConfig::send
  */
 public function testSend()
 {
     // Stub transport's sendRequest usage
     $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}/config"), $this->equalTo('PUT'), $this->isInstanceOf('\\stdClass'));
     $bridgeconfig = new SetBridgeConfig(array('name' => 'test'));
     $bridgeconfig->send($this->mockClient);
 }