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 (TypeError $e) {
11    echo $e->getMessage(), "\n";
12}
13
14?>
15--EXPECT--
16SplFileInfo::setFileClass(): Argument #1 ($class) must be a class name derived from SplFileObject, stdClass given
17