Skip to content

Commit

Permalink
Improved test coverage of daemon options object
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Carter committed Sep 23, 2015
1 parent 458a2e7 commit 01ec237
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/DaemonOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ public function testDaemonOptions()
$this->assertEquals($timeLimit, $options->getOption(DaemonOptions::TIME_LIMIT));
}

/**
* Test that an InvalidArgumentException is thrown when an invalid logger
* is provided.
*
* @expectedException \InvalidArgumentException
*/
public function testInvalidLogger()
{
new DaemonOptions([DaemonOptions::LOGGER => 'foo']);
}

/**
* Test that an InvalidArgumentException is thrown when the object is
* constructed with an unknown option.
Expand Down

0 comments on commit 01ec237

Please sign in to comment.