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