Changed Exception to UnexpectedValueException to match php

Fixes part of a zend test.