/** * Test: Set light name * * @covers \Phue\Command\SetLightName::__construct * @covers \Phue\Command\SetLightName::send */ public function testSend() { // Stub transport's sendRequest usage $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}/lights/{$this->mockLight->getId()}"), $this->equalTo('PUT'), $this->isInstanceOf('\\stdClass')); $lightname = new SetLightName($this->mockLight, 'Dummy name'); $lightname->send($this->mockClient); }