Skip to content

Commit

Permalink
GitHub #99 - Add test for invalid transition time
Browse files Browse the repository at this point in the history
  • Loading branch information
sqmk committed Nov 26, 2015
1 parent 5fdfa9e commit 72f8411
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Phue/Test/Command/CreateSceneTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,19 @@ public function testTransitionTime()
$this->assertEquals($command, $command->transitionTime(1));
}

/**
* Test: Setting invalid transition time
*
* @covers \Phue\Command\CreateScene::transitionTime
*
* @expectedException \InvalidArgumentException
*/
public function testExceptionOnInvalidTransitionTime()
{
$command = new CreateScene('phue-test', 'Scene test', [1, 2]);
$command->transitionTime(-1);
}

/**
* Test: Send command
*
Expand Down

0 comments on commit 72f8411

Please sign in to comment.