Phue\Test\Command\GetLightsTest::testFoundNoLights PHP Метод

testFoundNoLights() публичный Метод

Test: Found no lights
public testFoundNoLights ( )
    public function testFoundNoLights()
    {
        // Stub transport's sendRequest method
        $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}/lights"))->will($this->returnValue(new \stdClass()));
        // Send command and get response
        $response = $this->getLights->send($this->mockClient);
        // Ensure we have an empty array
        $this->assertInternalType('array', $response);
        $this->assertEmpty($response);
    }