Changed Exception to UnexpectedValueException to match php

Fixes a zend test.