Annotation of embedaddon/php/ext/reflection/tests/ReflectionObject_FileInfo_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ReflectionObject::getFileName(), ReflectionObject::getStartLine(), ReflectionObject::getEndLine() - basic function
3: --FILE--
4: <?php
5: $rc = new ReflectionObject(new C);
6: var_dump($rc->getFileName());
7: var_dump($rc->getStartLine());
8: var_dump($rc->getEndLine());
9:
10: $rc = new ReflectionObject(new stdclass);
11: var_dump($rc->getFileName());
12: var_dump($rc->getStartLine());
13: var_dump($rc->getEndLine());
14:
15: Class C {
16:
17: }
18: ?>
19: --EXPECTF--
20: string(%d) "%sReflectionObject_FileInfo_basic.php"
21: int(12)
22: int(14)
23: bool(false)
24: bool(false)
25: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>