1--TEST--
2ReflectionClass::getFileName(), ReflectionClass::getStartLine(), ReflectionClass::getEndLine()
3--FILE--
4<?php
5//New instance of class C - defined below
6$rc = new ReflectionClass("C");
7
8//Get the file name of the PHP script in which C is defined
9var_dump($rc->getFileName());
10
11//Get the line number at the start of the definition of class C
12var_dump($rc->getStartLine());
13
14//Get the line number at the end of the definition of class C
15var_dump($rc->getEndLine());
16
17//Same tests as above but stdclass is internal - so all results should be false.
18$rc = new ReflectionClass("stdClass");
19var_dump($rc->getFileName());
20var_dump($rc->getStartLine());
21var_dump($rc->getEndLine());
22
23Class C {
24
25}
26?>
27--EXPECTF--
28string(%d) "%sReflectionClass_FileInfo_basic.php"
29int(20)
30int(22)
31bool(false)
32bool(false)
33bool(false)
34