Phue\Test\SceneTest::setUp PHP Method

setUp() public method

Set up
public setUp ( )
    public function setUp()
    {
        // Mock client
        $this->mockClient = $this->getMock('\\Phue\\Client', array('sendCommand'), array('127.0.0.1'));
        // Build stub attributes
        $this->attributes = (object) array('name' => 'Dummy scene', 'lights' => array(2, 3, 5));
        // Create scene object
        $this->scene = new Scene('custom-id', $this->attributes, $this->mockClient);
    }