/** * 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); }