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