Phue\Command\Ping::send PHP Method

send() public method

Send command
public send ( Client $client )
$client Phue\Client Phue Client
    public function send(Client $client)
    {
        $client->getTransport()->sendRequest('/api/none/config');
    }

Usage Example

Example #1
0
 /**
  * Test: Send ping command
  *
  * @covers \Phue\Command\Ping::send
  */
 public function testSend()
 {
     // Stub transport's sendRequest usage
     $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo('/api/none/config'));
     $ping = new Ping();
     $ping->send($this->mockClient);
 }
Ping