send() public method

Send command
public send ( Client $client )
$client Phue\Client Phue Client
Example #1
0
 /**
  * Test: Send command
  *
  * @covers \Phue\Command\DeleteSchedule::__construct
  * @covers \Phue\Command\DeleteSchedule::send
  */
 public function testSend()
 {
     $command = new DeleteSchedule(4);
     // Stub transport's sendRequest usage
     $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("{$this->mockClient->getUsername()}/schedules/4"), $this->equalTo(TransportInterface::METHOD_DELETE));
     // Send command
     $command->send($this->mockClient);
 }