Phue\Test\Command\GetNewLightsTest::testGetNewLights PHP Метод

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

Test: Get new lights
public testGetNewLights ( )
    public function testGetNewLights()
    {
        // Send command and get response
        $response = $this->getNewLights->send($this->mockClient);
        // Ensure response is self object
        $this->assertEquals($this->getNewLights, $response);
        // Ensure array of lights
        $this->assertInternalType('array', $response->getLights());
        // Ensure expected number of lights
        $this->assertEquals(2, count($response->getLights()));
        // Ensure lastscan is active
        $this->assertTrue($response->isScanActive());
    }