Can be simplified by using `$this->setExpectedException('UnexpectedValueException')` right before `createResult()`

(http://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.exceptions)