mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
17 lines
369 B
Plaintext
17 lines
369 B
Plaintext
|
--TEST--
|
||
|
SplFileInfo::setFileClass() throws exception for invalid class
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$info = new SplFileInfo(__FILE__);
|
||
|
|
||
|
try {
|
||
|
$info->setFileClass('stdClass');
|
||
|
} catch (UnexpectedValueException $e) {
|
||
|
echo $e->getMessage(), "\n";
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
SplFileInfo::setFileClass() expects parameter 1 to be a class name derived from SplFileObject, 'stdClass' given
|