/** * Test: Send start sensor scan command * * @covers \Phue\Command\StartSensorScan::send */ public function testSend() { // Stub transport's sendRequest method $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}/sensors"), $this->equalTo('POST'))->will($this->returnValue('success!')); $sensor = new StartSensorScan(); $this->assertEquals('success!', $sensor->send($this->mockClient)); }