Skip to content

Commit 01ec237

Browse files
author
Andrew Carter
committed
Improved test coverage of daemon options object
1 parent 458a2e7 commit 01ec237

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/DaemonOptionsTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ public function testDaemonOptions()
3131
$this->assertEquals($timeLimit, $options->getOption(DaemonOptions::TIME_LIMIT));
3232
}
3333

34+
/**
35+
* Test that an InvalidArgumentException is thrown when an invalid logger
36+
* is provided.
37+
*
38+
* @expectedException \InvalidArgumentException
39+
*/
40+
public function testInvalidLogger()
41+
{
42+
new DaemonOptions([DaemonOptions::LOGGER => 'foo']);
43+
}
44+
3445
/**
3546
* Test that an InvalidArgumentException is thrown when the object is
3647
* constructed with an unknown option.

0 commit comments

Comments
 (0)