You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
530 B

--TEST--
ReflectionObject::getFileName(), ReflectionObject::getStartLine(), ReflectionObject::getEndLine() - basic function
--FILE--
<?php
$rc = new ReflectionObject(new C);
var_dump($rc->getFileName());
var_dump($rc->getStartLine());
var_dump($rc->getEndLine());
$rc = new ReflectionObject(new stdclass);
var_dump($rc->getFileName());
var_dump($rc->getStartLine());
var_dump($rc->getEndLine());
Class C {
}
?>
--EXPECTF--
string(%d) "%sreflectionObject_FileInfo_basic.php"
int(12)
int(14)
bool(false)
bool(false)
bool(false)