diff --git a/tests/Phue/Test/Command/CreateSceneTest.php b/tests/Phue/Test/Command/CreateSceneTest.php index 9449714..3efe848 100644 --- a/tests/Phue/Test/Command/CreateSceneTest.php +++ b/tests/Phue/Test/Command/CreateSceneTest.php @@ -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 *