/** * Test: Send command * * @covers \Phue\Command\DeleteGroup::__construct * @covers \Phue\Command\DeleteGroup::send */ public function testSend() { $command = new DeleteGroup(5); // Stub transport's sendRequest usage $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}/groups/5"), $this->equalTo(TransportInterface::METHOD_DELETE)); // Send command $command->send($this->mockClient); }