public function testExceptionOnUnSerializationException()
{
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('As of facebook/hhvm#3432, HHVM has no PDORow, and therefore ' . ' no internal final classes that cannot be instantiated');
}
$className = 'InstantiatorTestAsset\\UnserializeExceptionArrayObjectAsset';
if (\PHP_VERSION_ID >= 50600) {
$className = 'PDORow';
}
if (\PHP_VERSION_ID === 50429 || \PHP_VERSION_ID === 50513) {
$className = 'InstantiatorTestAsset\\SerializableArrayObjectAsset';
}
$this->setExpectedException('Instantiator\\Exception\\UnexpectedValueException');
$this->instantiator->instantiate($className);
}