1--TEST--
2SplFileInfo::setInfoClass() throws exception for invalid class
3--FILE--
4<?php
5
6$info = new SplFileInfo(__FILE__);
7
8try {
9    $info->setInfoClass('stdClass');
10} catch (UnexpectedValueException $e) {
11    echo $e->getMessage(), "\n";
12}
13
14?>
15--EXPECTF--
16SplFileInfo::setInfoClass() expects parameter 1 to be a class name derived from SplFileInfo, 'stdClass' given
17